Friday, February 10, 2012

Install Java 6 on Ubuntu 11.10

As most people have noticed Canonical is no longer providing the Sun Java Plugin via the Partner repository. It is said this is due to a licensing issue. Anyways, if you want to install and replace OpenJDK on Ubuntu 11.10 please follow the method here (http://www.duinsoft.nl/packages.php)

I find it to be the best way to be up-to-date with Sun Java6.



Previously posted method redacted, but kept for historical purposes.

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts


You probably also want to remove the existing openJDK and icedtea as well. You can do that with the following command

sudo apt-get remove icedtea-* openjdk-*
-Thanks for the heads-up Derek
I don't remember the exact ones which were installed, however, the above will certainly remove all of them.


EDIT: Note, a newer and better way is available see top of post.

1 comment:

Derek said...

I think you mean sudo apt-get remove icedtea-* openjdk-*.

Cheers! It looks to have cleared a few things up.