How to install Java 6 JDK on Ubuntu

It couldn’t be easier. Just execute the following commands in your favourite shell:

$ sudo apt-get install sun-java6-jdk sun-java6-plugin
$ update-java-alternatives -s java-6-sun

And add the following /usr/lib/jvm/java-6-sun to the top of the list in your /etc/jvm file.

Leave a Reply

Your email address will not be published. Required fields are marked *