Skip navigation

Installing Java on your Ubuntu system is quite easy. Just follow the instruction below.

First download the latest JDK (SE or EE) from Sun Microsystem, In this tutorial we are use the JDK SE 6u21. Your downloaded file will look something like this jdk-6u21-linux-i586.bin

After you finish the downloading, unpack the .bin file using the Broune Shell (sh) command. Assuming that you download the .bin file on your Desktop.

cd ~/Desktop
sudo chmod a+x *.bin
sudo sh ./jdk-6u21-linux-i586.bin

Rename the unpacked folder to something like JDK6u21 and move the directory to your desire place of your JDK.

sudo mv jdk-6u21-linux-i586 /home/greatxam/JDK6u21

Now, update your system so it will recognize your new Java installation.

sudo update-alternatives --install /usr/bin/java java /home/greatxam/JDK6u21/bin/java 300
sudo update-alternatives --config java

And add Java Run-Time Environment (JRE) plugin to your browser.

sudo ln -s /home/greatxam/JDK6u21/jre/plugin/i386/ns7/ /usr/lib/firefox/plugins

Congratulations! You have successfully install Java Development Kit under Ubuntu platform.
You might want to install a IDE for Java Development. So on our next issue will be Installing Eclipse IDE for Java.


2 Trackbacks/Pingbacks

  1. By Eclipse on Ubuntu « Hobbies & Vices on 30 Jul 2010 at 7:38 am

    […] Hobbies & Vices Sex, Drugs, Gambling, and ROCK ‘n ROLL About « Java Development Kit on Ubuntu […]

  2. By Android SDK Installation « Hobbies & Vices on 17 Dec 2010 at 5:13 am

    […] The Java Development Kit (JDK) is necessary for us to develop an Android application. For those who uses Ubuntu Linux here is how you install java development kit. […]

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: