How to install Netbeans (with prerequisites) in Ubuntu 11.04 and later

To install Netbeans in Ubuntu 11.04 (or later versions) you will need Java JRE or JDK to be installed beforehand.

Now I like openJDK a lot, but I still prefer Sun Java JDK for development πŸ™‚ So heres the recipe to cook everything –

1. Install JRE

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

During the installation press β€˜OK’ in the screen that appears within the Terminal (see the below screenshot, the screenshot was collected from internet). You can do so by navigating using the β€˜Tab’ key and once β€˜OK’ is highlighted in red, press β€˜Enter’.

Sun JRE license agreement







2. Install JDK

sudo apt-get install sun-java6-jdk

3. Install Netbeans

The Ubuntu repository has Netbeans 6.9. The latest available version is Netbeans 7.0.1. So I prefer manual installation (Applicable for any version of Netbeans).

  1. Download your appropriate version of Netbeans from
  2. Remember the download location. In my case, it was /media/software/SDK-IDE
  3. Apply sudo chmod a+x /media/software/SDK-IDE/
  4. Applying this command we are giving permission to the Netbeans installer file to be run as an executable program.
  5. Now double click the file and then click on β€œrun” to install NetBeans IDE
  6. Follow the instructions πŸ™‚

Thats all πŸ™‚