1) Download jdk-6u45-linux-x64.bin.tar.**
2) put it in a directory and unzip it.
3) Execute the following command
chmod +x Jdk-6u45-linux-x64.bin
./jdk-6u45-linux-x64.bin
Mkdir-p/USR/LIB/JVM
MV JDK1.6.0_45/USR/LIB/JVM
Update-alternatives--install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_45/bin/java" 1
Update-alternatives--install "/usr/bin/javac" "Javac" "/usr/lib/jvm/jdk1.6.0_45/bin/javac" 1
Update-alternatives--install "/usr/bin/javadoc" "Javadoc" "/usr/lib/jvm/jdk1.6.0_45/bin/javadoc" 1
Update-alternatives--install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/usr/lib/jvm/ Jdk1.6.0_45/jre/lib/amd64/libnpjp2.so "1
Update-alternatives--install "/usr/bin/javaws" "Javaws" "/usr/lib/jvm/jdk1.6.0_45/bin/javaws" 1
Update-alternatives--install "/usr/bin/jar" "Jar" "/usr/lib/jvm/jdk1.6.0_45/bin/jar" 1
Update-alternatives--config Java
Update-alternatives--config Javac
Update-alternatives--config Javadoc
Update-alternatives--config mozilla-javaplugin.so
Update-alternatives--config Javaws
Update-alternatives--config Jar
4) to check the order
Java-version
Javac-version
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
[ODROID-PC] ubuntu12.04 installation Jdk-6u45-linux-x64.bin