View Full Version : Switch between java installed?
erikja
May 7th, 2010, 05:40 AM
Hi.
How do I switch between different java's installed here on ubuntu 10.04 ?
QIII
May 7th, 2010, 05:54 AM
Do you mean tell your machine to use Sun Java instead of OpenJDK or visa versa?
I don't use OpenJDK, so I can't tell you. But to get Sun Java to be your alternative, open the terminal and type
update-java-alternatives -s sun-6-java
Someone will be by shortly to tell you how to get it back to OpenJDK.
erikja
May 7th, 2010, 07:05 AM
Do you mean tell your machine to use Sun Java instead of OpenJDK or visa versa?
I don't use OpenJDK, so I can't tell you. But to get Sun Java to be your alternative, open the terminal and type
update-java-alternatives -s sun-6-java
Someone will be by shortly to tell you how to get it back to OpenJDK.
Thank you for your reply. It's the vice versa I need :-)
From Sun Java to OpenJDK.
Trust that someone will give me the needed information here, TIA.
2hot6ft2
May 8th, 2010, 03:51 PM
Is this what you're waiting for?
sudo update-java-alternatives -s java-6-openjdk
More info in the help pages here:
https://help.ubuntu.com/community/Java
:guitar:
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.