Home > Tyler B, Ubuntu > How to install sun-java6-jdk and Netbeans in Ubuntu 11.10

How to install sun-java6-jdk and Netbeans in Ubuntu 11.10

If you’ve recently upgraded to Ubuntu 11.10 and are a developer you may notice some things missing. For one there is no longer an option to install the sun-java6-jdk or JRE from the repositories. Worse they also removed the Netbeans IDE. Apparently this had something to do with licenses but if you’re going to offer MP3 support the least you could do is make software like this available for those who are willing to look for it.

Anyway with that rant out of the way I did manage to find a way to install both.

Install sun-java6-jdk

Following the instructions on this excellent post I was able to successfully install sun-java6-jdk using the following commands:

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin

There are alternative instructions for installing Java 7 as well.

Install Netbeans

My first attempt at installing both was to head to the official Oracle Java website and download the Netbeans + JDK installer. Unfortunately the installer seems to crash in this version of Ubuntu. However since the above process had installed the JRE I was able to simply grab the Netbeans only installer from Oracle which ended up working surprisingly well. Just remember to run it using sudo if you want other users to be able to use it as well.

Categories: Tyler B, Ubuntu Tags: , ,
  1. October 23rd, 2011 at 03:08 | #1

    Talk about easy. Thank you for putting this together for those of us using SSH. 🙂

  2. October 25th, 2011 at 20:27 | #2

    I moved to openJDK. Thanks for sharing this info and bring back to sunJDK.

  3. Dan
    November 20th, 2011 at 21:49 | #3

    Weird, I got
    E: Unable to locate package sun-java6-jre-plugin
    when trying to do a get that contained that package name.
    I found the only thing that worked was: sudo apt-get install sun-java6-jdk on
    on kubuntu 11.10 and it installed all the other packages.

  4. Cody Jarrett
    February 10th, 2012 at 04:36 | #4

    Nice and easy tanks! I’m having tough go of it with loading IE through WINE. I need IE so I can use “Skillsoft”. Any suggestions?

  5. Tyler B
    February 11th, 2012 at 11:43 | #5

    I’m not sure what Skillsoft is but if you need IE on linux you can either use WINE (as you mentioned) or someone ported them with a project called IEs4Linux

  6. ashok
    March 6th, 2012 at 04:12 | #6

    this didnt work for me,.,.E:Package ‘sun-java6-jdk’has no installation candidate

  7. Sonam Agrawal
    March 29th, 2012 at 13:32 | #7

    thank u so much very usefull commands for installing jdk

  8. Luka Marinko
    April 10th, 2012 at 05:43 | #8

    As for explanation why java is no longer aviable in ubuntu repositories read: http://lwn.net/Articles/472466/

    In short Ubuntu no longer has the rights to distribute java package.

  9. January 22nd, 2013 at 06:53 | #9

    This website was… how do I say it? Relevant!! Finally
    I’ve found something which helped me. Kudos!

  1. November 13th, 2011 at 22:20 | #1
  2. December 4th, 2011 at 21:23 | #2
  3. August 23rd, 2012 at 03:29 | #3
  4. June 1st, 2013 at 14:03 | #4