How to install jdk on ubuntu 11.10

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.

Also Read:  Add Desktop Software Shortcuts in Ubuntu



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
If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on Twitter and Facebook.

You may also like...

5 Responses

  1. KUMAR says:

    very happy with this instrucstion…
    very heplfull..

  2. Iam Sskarthik says:

    Nice article ..very useful

  3. Jonas Saeys says:

    Thank you for this article, it helped me installing the jdk 🙂

  1. October 23, 2011

    […] To install JDK on ubuntu click here […]

  2. May 5, 2012

    […] For JDK 6 click here : How to install jdk6 on ubuntu […]

Leave a Reply

Your email address will not be published. Required fields are marked *