Sunday, May 09, 2010

Install sun-java6-jdk/sun-java6-jre on Ubuntu 10.04 LTS, using apt-get

In the new announced Ubuntu 10.04 LTS, the sun-java6-jdk packages have been removed from the Multiverse section of the Ubuntu archive. So you cannot install it using the command sudo apt-get install sun-java6-jdk directly!!!

To install sun-java6-jdk on Ubuntu 10.04 LTS, type the commands below in Terminal:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
or
sudo apt-get install sun-java6-jre