change default java on Ubuntu, LinuxMint


update-alternatives --config java

Sample output

There are 4 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
* 1 /home/yourname/apps/jdk1.6.0_26/bin/java 100 manual mode
2 /usr/bin/gij-4.5 1045 manual mode
3 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
4 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode

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

Update 6 Dec 2012: Oracle is not shipping installables(.deb) anymore. There are only extractle .tar.gz files. update-alternatives does not pick up the manual installation. I am still trying to figure out a way

to choose a manual installation.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s