1>>>wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=52240 -O /tmp/java.bin
2>>>mkdir -p /opt/java && cd /opt/java
3>>>chmod +x /tmp/java.bin && /tmp/java.bin
4>>>update-alternatives --install /usr/bin/java java /opt/java/jre1.6.?_??/bin/java 1
5>>>update-alternatives --set java /opt/java/jre1.6.?_??/bin/java
6>>>mkdir -p /usr/lib/mozilla/plugins/
7>>>ln -sf /opt/java/jre1.6.?_??/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
8>>>export JAVA_HOME=”/opt/java/jre1.6.?_??/bin/java”
9>>>firefox http://java.com/en/download/testjava