Subject: Problem get firefox Java-Plugin working
To: None <port-i386@netbsd.org>
From: Michael Tietz <micha.tietz@web.de>
List: port-i386
Date: 11/26/2007 20:56:40
Hi all
i try to get the Java-Plugin for firefox working, but without success.
If i retrieve a site containing a Java-applett, firefox sends
errormessages like this:
micha@deibel~> firefox http://www.java.com/de/download/help/testvm.xml
LoadPlugin: failed to initialize shared library
/home/micha/.mozilla/plugins/libflashplayer.so [Shared object
"libdl.so.2" not found]
LoadPlugin: failed to initialize shared library
/usr/pkg/java/sun-1.5/plugin/i386/ns7/libjavaplugin_oji.so [Shared
object "libX11.so.6" not found]
LoadPlugin: failed to initialize shared library
/usr/pkg/java/sun-1.5/plugin/i386/ns7/libjavaplugin_oji.so [Shared
object "libX11.so.6" not found]
LoadPlugin: failed to initialize shared library
/home/micha/.mozilla/plugins/libflashplayer.so [Shared object
"libdl.so.2" not found]
LoadPlugin: failed to initialize shared library
/usr/pkg/java/sun-1.5/plugin/i386/ns7/libjavaplugin_oji.so [Shared
object "libX11.so.6" not found]
LoadPlugin: failed to initialize shared library
/usr/pkg/java/sun-1.5/plugin/i386/ns7/libjavaplugin_oji.so [Shared
object "libX11.so.6" not found]
LoadPlugin: failed to initialize shared library
/home/micha/.mozilla/plugins/libflashplayer.so [Shared object
"libdl.so.2" not found]
LoadPlugin: failed to initialize shared library
/usr/pkg/java/sun-1.5/plugin/i386/ns7/libjavaplugin_oji.so [Shared
object "libX11.so.6" not found]
LoadPlugin: failed to initialize shared library
/usr/pkg/java/sun-1.5/plugin/i386/ns7/libjavaplugin_oji.so [Shared
object "libX11.so.6" not found]
LoadPlugin: failed to initialize shared library
/home/micha/.mozilla/plugins/libflashplayer.so [Shared object
"libdl.so.2" not found]
LoadPlugin: failed to initialize shared library
/usr/pkg/java/sun-1.5/plugin/i386/ns7/libjavaplugin_oji.so [Shared
object "libX11.so.6" not found]
LoadPlugin: failed to initialize shared library
/usr/pkg/java/sun-1.5/plugin/i386/ns7/libjavaplugin_oji.so [Shared
object "libX11.so.6" not found]
My system is NetBSD 3.1/i386. Following to firefox related packages are
installed:
[Plungins]
micha@deibel~> /usr/sbin/pkg_info -a|grep firefox
firefox-2.0.0.8 Lightweight gecko-based web browser
mplayer-plugin-firefox-2.70nb6 Mplayer plug-in for firefox
firefox-bin-2.0.0.9 Lightweight gecko-based web browser (binary package)
firefox-bin-flash-9.0.48 Flash Player plugin for firefox-bin
firefox-bin-java-1.2 Java Run Time Environment (JRE) 1.5 plugin for
firefox-bin
[Java-Runtime]
micha@deibel~> /usr/sbin/pkg_info -a|grep jre
blackdown-jre13-1nb2 Blackdown's Java(tm) Runtime Environment 1.3.1
sun-jre15-5.0.12nb3 Sun's Java(tm) 2 Standard Edition, JRE 5.0 Update 12
To prepare my system I followed the ideas of
http://wiki.netbsd.se/How_to_run_Netbeans_5.5_on_NetBSD
The JRE seems to run well:
micha@deibel~> java -version
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)
The complained, supposed to be unlocated libraries are (IMO) proper
installed:
micha@deibel~> find /usr/pkg/ -name libdl.so.2 2>/dev/null
/usr/pkg//emul/linux/lib/libdl.so.2
micha@deibel~> find /usr/pkg/ -name libX11.so.6 2>/dev/null
/usr/pkg//emul/linux/usr/X11R6/lib/libX11.so.6
/usr/pkg//share/x11-links/lib/libX11.so.6
In file
/usr/pkg/emul/linux/etc/ld.so.conf
a line "/emul/linux/usr/X11R6/lib" exists,
the corresponding ldconfig has been done:
# /usr/pkg/emul/linux/sbin/ldconfig && echo ok || echo not ok
ok
Last I tried to set a appropriate LD_LIBRARY_PATH:
LD_LIBRARY_PATH=/emul/linux/usr/X11R6/lib firefox
http://www.java.com/de/download/help/testvm.xml
but it results the same behavior as described above
Or
LD_LIBRARY_PATH=/emul/linux/usr/X11R6/lib:/usr/pkg/emul/linux/lib
firefox http://www.java.com/de/download/help/testvm.xml
Illegaler Speicherzugriff (core dumped) # that means "segmenation fault"
Meanwhile the Flash Player plugin for firefox-bin works well, although
even libflashplayer.so is supposed to be not found.
Very mysterious that all :(
Any Ideas?
Thanks in advance
Michael Tietz