How to Install Java JDK & Netbeans in Ubuntu

Every time you make a fresh installation of ubuntu, you need to download large software packages again. So the best way to save time is to download the installer files and store it in a different hard-disk drive. Later, we can simply double-click the installer file to install the application!

This tutorial is not only for Ubuntu Netbook remix. It can be used at any version of Ubuntu 🙂

1. Install JDK

We will use OpenJDK as your default JDK. JDK is needed to develop applications in Netbeans. Alternately, you can use Sun JDK

To install OpenJDK, type in terminal:

sudo apt-get update
sudo apt-get install openjdk-6-jdk

2. Download Netbeans from Official Site

Now we will download Netbeans. Go to Download link below:

Download page. Choose options you need.

3. Install

When download is completed, you will find a .sh file waiting for you. Give it executable permission- Copy the file to your home directory. Then open a terminal and type:

sudo chmod a+x filename.sh

Now, Simply double click it to install.

Alternately, you can run it from terminal. Copy the file to your home directory. Then open a terminal and type:

sudo sh filename.sh

Of course, replace filename.sh with the filename you just downloaded.

Now, store the large downloaded file to a safe location so that you may use it later, when you re-install Ubuntu!