The sun-java6 package (and also jdk7) is no longer available in the official Ubuntu 11.10 Oneiric Ocelot repositories due to the removal of the JDL license. To install sun jdk on ubuntu 11.10.
To install JDK7 click Here:
1.Open Terminal.To open terminal click the Dash home from unity launcher.And type terminal in the search field.And click Terminal
2.Type the below code in terminal and hit enter.
sudo add-apt-repository ppa:ferramroberto/java
Type your ubuntu password if needed and press enter.
3.Then press enter to continue or ctrl-c to cancel adding the ppa.
4.Type below command and hit enter
sudo apt-get update
5.Then type below command and press enter
sudo apt-get install sun-java6-jdk sun-java6-plugin
6.Type y and hit enter to confirm the installation.
7.Select
OK
and press enter enter
8.To accecpt the DLJ licence select yes and press enter
9.After the successful installation,to check the installed version type
java -version
Pingback: How to install Oracle JDK 7 on ubuntu 12.04 | CONNECTwww.com
very happy with this instrucstion…
very heplfull..
Nice article ..very useful
Thank you for this article, it helped me installing the jdk 🙂
Pingback: How to install Netbeans IDE 7.0.1 on ubuntu 11.10 | CONNECTwww.com