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.



9 Comments

  1. 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.

  2. 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?

  3. 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

4 Trackbacks / Pingbacks

  1. How to install sun-java6-jdk and Netbeans in Ubuntu 11.10 | The Linux Experiment « Chentou's Wordpress
  2. Compiling Cyanogenmod4Milestone on Ubuntu 11.10 « sfuelliot
  3. Phillip的哲学世界 » Ubuntu 11.10使用apt安装sun-java6-jre
  4. The Linux Experiment Post Roundup | TylerBurton.ca

Leave a Reply

Your email address will not be published.


*