Subject: Mozilla and Java plugin--does it work?
To: None <tech-pkg@netbsd.org>
From: thisplanetsux <thisplanetsux@yahoo.com>
List: tech-pkg
Date: 04/08/2002 14:07:34
I can not seem to get the Java plugin working under Mozilla.  Per
the Mozilla FAQ, I have created a symlink from the java plugin module to
the Mozilla plugin directory:

dhcp-109-67% ls -al /usr/pkg/java/jre/plugin/i386/ns600/*
-rwxr-xr-x  1 root  wheel  350866 Feb 20 14:59
/usr/pkg/java/jre/plugin/i386/ns600/libjavaplugin_oji.so 
dhcp-109-67% ls -al /usr/X11R6/lib/mozilla/plugins 
dr-xr-xr-x  2 root  wheel    512 Apr  8 12:33 .
dr-xr-xr-x  9 root  wheel   1536 Mar 15 16:20 ..
lrwxr-xr-x  1 root  wheel     56 Apr  8 12:33 libjavaplugin_oji.so ->
 /usr/pkg/java/jre/plugin/i386/ns600/libjavaplugin_oji.so
-r-xr-xr-x  1 root  wheel  17048 Mar 15 16:19 libnullplugin.so

But when I start Mozilla, it fails to load the plugin:

dhcp-109-67% mozilla &
[2] 20684
dhcp-109-67% LoadPlugin: failed to initialize shared library
/usr/pkg/java/jre1.3.1_03/plugin/i386/ns600/libjavaplugin_oji.so [Shared
object "libnspr4.so" not found]

This "libnspr4.so" files exists in the Mozilla lib directory:

dhcp-109-67% ls -al /usr/X11R6/lib/mozilla/libnspr4.so
-r-xr-xr-x  1 root  wheel  185348 Mar 15 16:19
 /usr/X11R6/lib/mozilla/libnspr4.so

Has anyone gotten this Java plugin to work?  Any suggestions to work
around this problem or flat out fix it?  

FYI, I'm on NetBSD-i386 v1.5.2 and have the Sun_JDK_1.3.1 and Mozilla
0.9.9 installed right out of the most current pkgsrc.

Thanks in advance!