wget –no-cookies –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F” http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-i586.bin
chmod a+x jdk-6u37-linux-i586.bin
./jdk-6u37-linux-i586.bin
mv jdk1.6.0_37/ java-6-oracle
mv java-6-oracle/ /usr/lib
sudo mkdir /usr/lib/jvm
cd /usr/lib
mv java-6-oracle/ jvm
sudo update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/java-6-oracle/bin/java” 1
sudo update-alternatives –install “/usr/bin/javac” “javac” “/usr/lib/jvm/java-6-oracle/bin/javac” 1
sudo update-alternatives –install “/usr/bin/javaws” “javaws” “/usr/lib/jvm/java-6-oracle/bin/javaws” 1