[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Sun Java 1.4.2 packaged with mpkg-j2sdk prevents mozilla/galeon from starting



hi all.

when packaging sun java 1.4.2 (probably others as well) with mpkg-j2sdk and installing the resulting j2sdk package, mozilla/galeon stops working, and reports this error on startup:

INTERNAL ERROR on Browser End: No manager for initializing factory?

System error?:: Success

this apperantly is due to a java plugin being compiled with a different gcc version, but both versions are available in the j2sdk1.4 package; see below:

/usr/lib/j2sdk1.4/jre/plugin/i386/ns4
/usr/lib/j2sdk1.4/jre/plugin/i386/ns4/libjavaplugin.so
/usr/lib/j2sdk1.4/jre/plugin/i386/ns610
/usr/lib/j2sdk1.4/jre/plugin/i386/ns610/libjavaplugin_oji.so
/usr/lib/j2sdk1.4/jre/plugin/i386/ns610-gcc32
/usr/lib/j2sdk1.4/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

the problem is that only one of the libjavaplugin_oji.so files are considered by the alternatives system (the ns610 one), and thus i could not do a clean fix for this through the alternatives system. however, having looked at the mpkg-j2sdk script, it appears to me that both plugins should be available to the alternatives system; yet they are not!

 here is the statement from the postinst script:

       update-alternatives \
--install "/usr/lib/mozilla/plugins/javaplugin_oji.so" "javaplugin_oji.so" "/usr/lib/j2sdk1.4/jre/plugin/i386/ns610/libjavaplugin_oji.so" 200

note that only ns610 and not ns610-gcc32 is being installed as alternative javaplugins.

 so in conclusion, i guess there is a bug in the mpkg-j2sdk package.

my temporary workaround for this problem (in case others need a quick solution):

cd /usr/lib/mozilla/plugins
ln -s /usr/lib/j2sdk1.4/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so .

 my system is running Debian unstable.

 here are two reference links:

http://forum.java.sun.com/thread.jsp?forum=32&thread=420194&tstart=0&trange=15
http://java.sun.com/j2se/1.4.2/manual_install_linux.html#note

ciao,
 hein



Reply to: