The java6 package was moved from the multiverse to the partner repository for Ubuntu 10.04 (and perhaps going forward, for Ubunto 10.10)
Add the repository to your sources.list:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
Update the source list
sudo apt-get update
And install java
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
The above three steps can also be performed in the gui:
- System --> Administration --> Software Sources
- Open the
Other Software tab
deb http://archive.canonical.com/ lucid partner
+Add Source to accept the new repository
Close to update the source list
- Open Firefox and open the following URLs:
Alternately, if you want to develop in java, you would install the sun-java6-jdk package.
If you have multiple versions of java installed, you may need to change the default version with the
sudo update-alternatives --config java command, selecting the one with
j2re1.6-sun in it.