Month: April 2012

How to install java 1.6.31 JRE on Ubuntu (64bit)

lnrsoft@lnrsoft:$cd /opt
lnrsoft@lnrsoft:/opt$sudo mkdir java
lnrsoft@lnrsoft:/opt$cd java
lnrsoft@lnrsoft:/opt/java$sudo mkdir 64
lnrsoft@lnrsoft:/opt/java$sudo mv ~/Desktop/jre-6u31-linux-x64.bin /opt/java/64
lnrsoft@lnrsoft:/opt/java$sudo chmod 755 /opt/java/64/jre-6u31-linux-x64.bin
lnrsoft@lnrsoft/opt/java:$cd /opt/java/64
lnrsoft@lnrsoft:/opt/java/64$sudo ./jre-6u31-linux-x64.bin

Agree the license agreement

lnrsoft@lnrsoft:/opt/java/64$sudo update-alternatives –install “/usr/bin/java” “java” “/opt/java/64/jre1.6.0_31/bin/java” 1
lnrsoft@lnrsoft:/opt/java/64$sudo update-alternatives –set java /opt/java/64/jre1.6.0_31/bin/java

Install the Firefox plugin

lnrsoft@lnrsoft:/opt/java/64$mkdir ~/.mozilla/plugins
lnrsoft@lnrsoft:/opt/java/64$sudo apt-get remove icedtea6-plugin
lnrsoft@lnrsoft:/opt/java/64$rm ~/.mozilla/plugins/libjavaplugin_oji.so
lnrsoft@lnrsoft:/opt/java/64$rm ~/.mozilla/plugins/libnpjp2.so
lnrsoft@lnrsoft:/opt/java/64$ln -s /opt/java/64/jre1.6.0_31/lib/amd64/libnpjp2.so ~/.mozilla/plugins/