Download Java software for Linux
Linux (self-extracting file)
2.
Code:
mkdir /opt/java && cd /opt/java && sh /xx/xx/{your downloaded xx.bin file}
(will create: /opt/java/jre1.6.0_21)
3.
Code:
update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.6.0_21/bin/java" 1
4.
Code:
update-alternatives --set java /opt/java/jre1.6.0_21/bin/java
5.
Code:
ln -s /opt/java/jre1.6.0_21/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
Note: don't use /opt/java/jre1.6.0_21/plugin/i386/ns7/xxx.so
6. add JAVA_HOME to your bash environment, like
export JAVA_HOME="
/opt/java/jre1.6.0_21/bin/java"
into (~/.bashrc)
test if correct java JRE is in use:
Code:
java -version
7. restart firefox and new java plugin should be available
about:plugins
/brtw2003
0 comments
Post a Comment