Subject: Re: Firefox and Java (was Firefox and plugins)
To: Lubomir Sedlacik <salo@Xtrmntr.org>
From: Florence HENRY <Florence.Henry@obspm.fr>
List: netbsd-users
Date: 07/16/2004 16:00:56
> mk/bsd.pkg.defaults.mk:
>
> #MOZILLA_USE_LINUX=
> # Used by mozilla binary packages to prefer the use of Linux
> # compatibility instead of native builds.
> # Possible: set, unset
> # Default: unset
Thanks! Firefox sees the plugins. However, don't you think that it would
be a goo idea to display a message when installing those package that they
won't work if firefox-bin was installed with MOZILLA_USE_LINUX= 0 ?
Howver, I still have problems running the applets:
By default, there is a symbolic link :
/usr/pkg/lib/firefox-linux/pluginslibjavaplugin_oji.so@ ->
../../../java/sun-1.3.1/plugin/i386/ns600/libjavaplugin_oji.so
When I start firefox-linux, I get :
LoadPlugin: failed to initialize shared library
/usr/pkg/lib/firefox-linux/plugins/libjavaplugin_oji.so
[/usr/pkg/lib/firefox-linux/plugins/libjavaplugin_oji.so: undefined
symbol: __vt_17nsGetServiceByCID]
This message is also produced each time I try to see an applet. In
addition, about:plugins does not show the java plugin
***
If I try to modify the link pointed by libjavaplugin_oji.so:
libjavaplugin_oji.so@ ->
../../../java/sun-1.4/plugin/i386/ns610/libjavaplugin_oji.so
In this case, firefox-bin does not start with the error:
INTERNAL ERROR on Browser End: No manager for initializing factory?
System error?:: Too many levels of symbolic links
***
Another try :
libjavaplugin_oji.so@ ->
../../../java/sun-1.4/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
firefix-bin sees the java plugin (about:plugins), but when I try to see an
applet, firefox-bin crashes with :
Error: realpath(`/usr/pkg/lib/firefox-linux/plugins/libjavaplugin_oji.so')
failed.
Plugin: can't find plugins/../java directory
INTERNAL ERROR on Browser End: Could not start JavaVM!
System error?:: Too many levels of symbolic links
***
The problem may also come from Java itself. I cannot compile one single
java program with the sun-1.4 version.
This program : HelloWorld.java
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!"); //Display the string.
}
}
compiles fine with the java compiler from gcc3, but I get a Memory fault
with
/usr/pkg/java/sun-1.4/bin/javac HelloWorld.java
Note that if I make a ktrace, the name of the file doesn't appear once,
and I get exactly the same result if I omit the java filename...
And here is my ulimit -a:
time(cpu-seconds) unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 32768
lockedmem(kbytes) 339572
memory(kbytes) 1018716
nofiles(descriptors) 64
processes 160
Does somebody have an idea of how solve my problem ?
Thanks !
----
Florence HENRY
florence.henry@obspm.fr