How to Install Sun Java 6 in Ubuntu 11.10 (Oneiric Ocelot)
As already you know, canonical no longer redistribute the Java packages due to license issue. Canonical removed the Java packages from their repository and now they distribute openjdk as alternative, by default it installs with Ubuntu. If you need Java on Ubuntu; installation must do through the external repository. Here is the tutorial about installing Sun Java6 on Ubuntu 11.10.
Open Terminal ( Ctrl + Alt + T ).
Remove the OpenJDK from the system if already you have it installed.
[email protected]~/$ sudo apt-get remove --purge openjdk*
[email protected]~/$ sudo apt-add-repository ppa:flexiondotorg/java
Update the repository on your system. Ignore if any error occur.
[email protected]~/$ sudo apt-get update
Install Sun Java6 and its plugins. Note: It might verify the installation of packages, type Y to confirm.
[email protected]~/$ sudo apt-get install sun-java6-jre sun-java6-jdk
Verify the installation.
You can also verify by visiting the following link.