//

2009/06/22

Install Java 6 on Ubuntu

For the former, the command is as follows:
sudo apt-get install sun-java6-jdk sun-java6-plugin

For JRE:
sudo apt-get install sun-java6-jre sun-java6-plugin

Once either one is done, run the sudo update-java-alternatives -s java-6-sun command and finally add the line “/usr/lib/jvm/java-6-sun” to the top of the /etc/jvm file (gksudo gedit /etc/jvm). Save and exit. To test your Java(TM) setup in the terminal type:-
java -version

If you get an output like below, then you are done!
java version “1.6.0″ Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

No comments:

IP address