How to install sun java/jdk in ubuntu 10.10 (maverick)

Posted by

Sun Java packages have been dropped from Ubuntu 10.04 LTS from the Multiverse section of Ubuntu archive. Ubuntu team is encouraging users to use OpenJDK instead of Sun JDK/JRE but still if you want to install Sun JDK on your Ubuntu then here is the solution:

sudo add-apt-repository "deb maverick partner"
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-jdk
sudo update-alternatives --config java

It will install sun-java6-jdk from ubuntu partner repository.

You may also like to read:

Views :7638

Incoming search terms:

ubuntu (21),install jdk in ubuntu 10 10 (1)


  1. Bokocafe says:

    I needed to have Sun Java plugin installed, to work with a financial website. This solution worked perfectly. Thank you for posting it.

    1. Anonymous says:

       it really nice to hear that it helps u 🙂

  2. NABH says:

    I really appreciate your post and you explain each and every point very well.Thanks for sharing this information.And I’ll love to read your next post too.

  3. ubuntu tips says:

    The post looks great as it is provided with instructions that can be followed.