Java Plugin for Mozilla in Slackware

Posted by: Andrew Smith
Poster contact info: andrew-smith at mail ru
Author: same as 'Posted by'
Software: Slackware 10.1

The java plugin is installed by default in slackware. It doesn't work because mozilla doesn't know it exists.

To fix it, do the following as root:
ln -sf /usr/lib/jdk1.5.0_01/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/local/mozilla/plugins

Note that the path to mozilla is different on my system because I don't use slackware packages for mozilla. Do the following to find your mozilla directory and replace it in the above command:
find / -name mozilla 2> /dev/null

Enjoy.

Alternative locations

Posted by: Andrew Smith
Poster contact info: andrew-smith at mail ru
Author: same as 'Posted by'
Software: Slackware 10.1

An update to the slackware j2sdk package changes the location of the java library:
/usr/lib/jdk1.5.0_03/jre/plugin/i386/ns7/libjavaplugin_oji.so

And I guess if you don't have the sdk installed you can use the plugin from JRE:
/usr/lib/jre1.5.0_03/plugin/i386/ns7/libjavaplugin_oji.so

More Alternate Locations

Posted by: Andrew Smith
Poster contact info: andrew-smith at mail ru
Author: same as 'Posted by'
Software: Slackware 10.2

Here are the locations of the java files for Slackware 10.2:
/usr/lib/jdk1.5.0_04/jre/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/jre1.5.0_04/plugin/i386/ns7/libjavaplugin_oji.so