Example does not run ...
Johann Petrak <[email protected]> Tue, 17 Oct 2006 16:11:36 +0200
| Newsgroups | gmane.comp.mozilla.jrex |
|---|---|
| Message-ID | <[email protected]> |
I compiled Seamonkey 1.0.5 on Linux and it runs fine.
Here is my .mozconfig:
------------
ac_add_options --enable-application=suite
mk_add_options MOZ_CO_PROJECT=suite
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-xft
ac_add_options --disable-tests
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
--------------
Then I copied the JRex distro into mozilla/embedding/JRex
I changed the JRex.properties file to point at the
different objectdir:
moz_gre =./../../obj-i686-pc-linux-gnu/dist/gre
moz_bin =./../../obj-i686-pc-linux-gnu/dist/bin
jrex_gre =./../../obj-i686-pc-linux-gnu/jrex_gre
Then I run "ant" and "ant jrex_jre", both ended successfully.
When I do "ant run" I get the following jrex.err:
Exception in thread "main" org.mozilla.jrex.exception.JRexException
at
org.mozilla.jrex.xpcom.JRexXPCOMImpl.startXPCOM(JRexXPCOMImpl.java:143)
at org.mozilla.jrex.JRexFactory.startEngine(JRexFactory.java:222)
at test.JRexExample.main(JRexExample.java:50)
Caused by: java.lang.UnsatisfiedLinkError: InitXPCOM
at org.mozilla.jrex.xpcom.JRexXPCOMImpl.InitXPCOM(Native Method)
at
org.mozilla.jrex.xpcom.JRexXPCOMImpl.access$200(JRexXPCOMImpl.java:45)
at
org.mozilla.jrex.xpcom.JRexXPCOMImpl$1.run(JRexXPCOMImpl.java:173)
What is it I am missing here?
Cheers,
Johann