Wednesday, April 25, 2007

Adding Java Support to Firefox

To enable Java applets in Firefox, you must first install Java (see this post). Then locate the Firefox java plugin file:
locate libjavaplugin_oji.so

You will get something like this:
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so

We need the first file (the one in the ns7 directory, NOT the one in ns7-gcc29).
Type
cd

to go to your home directory, then
ln -s /usr/lib/jvm/java-6-sun-1.6.0.00/jre/plugin/i386/ns7/libjavaplugin_oji.so .mozilla/plugins/

to link the plugin file to Firefox.

Links of Interest
Sun's Linux manual download/installation page

No comments: