choose java alternatives in ubuntu.

10 Jan

After install Sun java6 in ubuntu. We need to change default one using alternatives command.

sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws


Just type the number to change.

Selection Path Priority Status
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/javaws 1061 auto mode
 1 /usr/lib/jvm/java-6-openjdk/jre/bin/javaws 1061 manual mode
 2 /usr/lib/jvm/java-6-sun/jre/bin/javaws 63 manual mode

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

Posted by on January 10, 2013 in Installations, Ubuntu


Tags: ,

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

%d bloggers like this: