Minggu, 24 Oktober 2010

Ubuntu choosing the default Java to use

Amplify’d from help.ubuntu.com

Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:   

  • Open a Terminal window
  • Run sudo update-java-alternatives -l to see the current configuration and possibilities.

  • Run sudo update-java-alternatives -s XXXX to set the XXX java version as default. For Sun Java 6 this would be sudo update-java-alternatives -s java-6-sun

  • Run java -version to ensure that the correct version is being called.

You can also use the following command to interactively make the change;

  • Open a Terminal window
  • Run sudo update-alternatives --config java

  • Follow the onscreen prompt

 


Read more at help.ubuntu.com
 

 

Tidak ada komentar:

Posting Komentar