[Odroid-pc] ubuntu12.04 jdk-6u45-linux-x64.bin, jdk6u45linuxx64
1. Download jdk-6u45-linux-x64.bin.tar .**
2) Put it in a directory and decompress 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) run the following command to check
Java-version
Javac-version
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.