newbies question.

sk <[email protected]> Wed, 29 Nov 2006 11:21:09 +0100
Newsgroups gmane.comp.mozilla.jrex
Message-ID <[email protected]>
Hello,

when i try to run a simple example with jrex i get the folowing exception.

run:
***************** JRexL inited *****************
***************** JREX-Logging disabled *****************
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 jbrowser.Main.main(Main.java:37)
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)
Java Result: 1


i think the problem is with InitXPCOM. could anyone explain me what
InitXPCOM is?

the source code that rice the exception is

    public static void main(String[] args) throws JRexException {

        System.setProperty("jrex.gre.path",
"C:\\cygwin\\home\\mmilon\\development\\labs\\JBrowser\\lib");

        //start the JRex XPCOM engine.
        JRexFactory.getInstance().startEngine();

        //Get the JRex WindowManager implementation.
        JRexWindowManager
winManager=(JRexWindowManager)JRexFactory.getInstance().getImplInstance(JRexFactory.WINDOW_MANAGER);

        //Create the JRex WindowManager with desired window mode.
        winManager.create(JRexWindowManager.TAB_MODE);

        //init the window manager with a parent component where JRex
browser sits, if component is null then a new JFrame will be used.
        winManager.init(null);
    }


Thank very much.

Marco