Get Firefox or Mozilla to use a different JRE

From MEPIS Documentation Wiki

Jump to: navigation, search

!!! Warning! The info contained in this article pertains to older versions of MEPIS !!!
The trick here is making a symbolic link between the .so files under your JRE and Mozilla or Firefox.

Here is an example

ln -fs /usr/share/java/jre1.5.0_04/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
ln -fs /usr/share/java/jre1.5.0_04/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins/

Your java location might be different. I use the 1.5 JDK so my JRE is /usr/lib/j2sdk1.5-sun/jre which would need to replace /usr/share/java/jre1.5.0_04/ in the commands above.

If you cannot locate the files (since the path might have changed) run as root

updatedb

and then

locate libjavaplugin_oji.so
Personal tools
In other languages