24.9.11

sun java sun java sun java

Here are the directions for ... 2011 .... for installing java, I mean the real, SUN java. You can easily get open-jdk using apt-get.

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 :

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

sudo apt-get update

sudo apt-get-install sun-java6-jdk

sudo update-java-alternatives -s java-6-sun


These instructions were borrowed from the excellent Hadoop tutorial by Mike Noll http://www.michael-noll.com/

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

1 comment:

  1. sorry, i forgot, sometimes you might need to throw a

    sudo 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.

    ReplyDelete