got "failed to initialize mozilla" while trying to load mozswing
blues-man <[email protected]> Thu, 5 Feb 2009 18:49:40 -0800 (PST)
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Hi all,
I ve done a Java application that uses mozswing to integrate a
browser. I can run it right on Windows but on Linux I got this error
while trying to start the application (even if the main JFrame
starts ):
bluesman@ray:~/Apps/MZBrowser$ java -jar MZBrowser.jar www.google.com
debug
6-feb-2009 3.40.46 org.mozilla.browser.MozillaInitialization
initialize
INFO: Using xul runner dir: /usr/lib/
xulrunner
6-feb-2009 3.40.46 org.mozilla.browser.MozillaInitialization
initialize
GRAVE: failed to initialize
mozilla
org.mozilla.browser.MozillaException: java.lang.AbstractMethodError:
org.mozilla.xpcom.internal.GREImpl.initEmbedding(Ljava/io/File;Ljava/
io/File;Lorg/mozilla/xpcom/IAppFileLocProvider;Lorg/mozilla/xpcom/
IXREAppData;)V
at org.mozilla.browser.MozillaExecutor.mozInit
(MozillaExecutor.java:220)
at org.mozilla.browser.MozillaInitialization.initialize
(MozillaInitialization.java:143)
at org.mozilla.browser.MozillaWindow.<init>(MozillaWindow.java:
132)
at org.mozilla.browser.MozillaWindow.<init>(MozillaWindow.java:
101)
at com.hictech.browse.HicBrowser.<init>(HicBrowser.java:
15)
at com.hictech.browse.HicBrowser.getDebugBrowser
(HicBrowser.java:64)
at com.hictech.browse.HicBrowser.main(HicBrowser.java:96)
Caused by: java.lang.AbstractMethodError:
org.mozilla.xpcom.internal.GREImpl.initEmbedding(Ljava/io/File;Ljava/
io/File;Lorg/mozilla/xpcom/IAppFileLocProvider;Lorg/mozilla/xpcom/
IXREAppData;)V
at org.mozilla.xpcom.Mozilla.initEmbedding(Mozilla.java:696)
at org.mozilla.browser.MozillaInitialization$2.run
(MozillaInitialization.java:157)
at org.mozilla.browser.MozillaExecutor$1.run
(MozillaExecutor.java:191)
that Jar uses xulrunner 1.9_0 that I ve also put in the directory in
the native/ dir. Anyway,as you see, it tries to access the xulrunner
installed on my ubuntu 8.10 linux 2.6.28 Sun Java6 JRE. I can't find
on google any information about this error that I got only on linux
but I could successful run mozswing JNLP from http://jnlp.concord.org/dev/mozswing/mozswing.jnlp
it opened to me a frame with the mozilla embedded inside. So what
could be the problem?
Also on Debian Testing 2.6.26, OpenJDK 6 on e16 desktp enviroment,I
got this error but the main JFrame isn't shown
Hoping you can help me!