Sun java is a nice thing to have.... For example if you want to run Hadoop --- Sun JDK is the way to go.
Four steps :
UPDATE 3/23/2012
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
And that ACTUALLY works !
These instructions were borrowed from :
http://www.gaggl.com/2011/10/installing-java6-jdk-on-ubuntu-11-10/
UPDATE FOR UBUNTU 12
Alas, in Ubuntu 12 the story again changes. There doesn't appear to be an apt-get repo out there - but this github repository from flexion.org worked very effectively.
Grabbed this from an awesome post here : Latest Oracle (Sun) Java JDK and JRE 6 on Ubuntu operating ... : Here is the scripted version of it :
cd $HOME
wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java.sh -O oab-java6.sh
chmod +x oab-java6.sh
sudo ./oab-java6.sh
sudo apt-get install sun-java6-bin sun-java6-fonts sun-java6-javadb sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-source
sudo apt-get install sun-java6-jre sun-java6-plugin
sorry, i forgot, sometimes you might need to throw a
ReplyDeletesudo apt-get -f install
in there after wards. I found that when I run the apt-get-install sun-java6-jdk command, that I then needed to run "sudo apt-get -f install" afterwards. This was directly suggested by apt-get.