To get started, download Java JDK package from here.

When prompted with the screen below, choose to save the file.

 

jdk_precise

 

After saving, extract the downloaded package by running the commands below. This assumes that the package was downloaded in your Downloads folder.

tar -xvf ~/Downloads/jdk-7u3-linux-i586.tar.gz

 

jdk_precise_1

 

Next, create a folder for Java JDK files and folders by running the commands below.

sudo mkdir -p /usr/lib/jvm/jdk1.7.0

 

jdk_precise_2

 

Then move all the JDK files and folders to the new location by running the commands below.

sudo mv jdk1.7.0_03/* /usr/lib/jvm/jdk1.7.0/

 

jdk_precise_3

 

Next, copy and paste each command as shown below one-at-a-time to enable Java JDK. Remember to press Enter after each line.

sudo update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/jdk1.7.0/bin/java” 1

sudo update-alternatives –install “/usr/bin/javac” “javac” “/usr/lib/jvm/jdk1.7.0/bin/javac” 1

sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1

 

Then create a Mozilla plugins folder in your home directory.

mkdir ~/.mozilla/plugins/

 

jdk_precise_7

 

Finally, create a symbolic link to your Mozilla plugins folder. For 64-bit systems, replace ‘i386’ with ‘amd64’.

ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/

 

jdk_precise_8

 

That’s it! Enjoy!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s