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’.
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).
- Download your appropriate version of Netbeans from http://netbeans.org/downloads/index.html
- Remember the download location. In my case, it was /media/software/SDK-IDE
- Apply sudo chmod a+x /media/software/SDK-IDE/netbeans-7.0.1-ml-linux.sh
- Applying this command we are giving permission to the Netbeans installer file to be run as an executable program.
- Now double click the file and then click on “run” to install NetBeans IDE
- Follow the instructions 🙂
Thats all 🙂