Help Us Improve. Please let us know if you were asked any question in your interview.

More Questions

PROBLEM - Ubuntu - Change / Switch Java version

Problem


Change Java version or Switch to an alternate Java version with multiple Java versions being installed on the machine


Solution 

Run
     sudo update-alternatives --config java

and system will show the options available ( Java versions installed on machine ) and will then present with the message -

"Press enter to keep the current choice[*], or type selection number: "

Enter the Selection # of the Java version you would like to be set and press Enter.

Confirm that the version has been changed by running
         java - version



 Stay Updated with Java Posts directly to your mailbox.
Enter your email address:

'
Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner
comments powered by Disqus




×

Would like to try our new Java Interview Questions Search Tool.

There are more than 1000 questions with practice tests. It's updated daily and It's Awesome.


×

Would like to try our new Java Practice Test tool.

There are more than 100 questions currently and expanding quickly. It's updated daily and It's Awesome.