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/libjavaplugin_oji.so /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
[...] Hobbies & Vices Sex, Drugs, Gambling, and ROCK ‘n ROLL About « Java Development Kit on Ubuntu [...]
[...] 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. [...]