Hello,
Am a newby by at JavaXPCOM.
I've compiled the example from JavaXPCOM page:


        Mozilla mozilla = Mozilla.getInstance();
        GREVersionRange[] range = new GREVersionRange[1];
        range[0] = new GREVersionRange("1.8.0", true, "1.9", false);

        try {
            File grePath = Mozilla.getGREPathWithProperties(range,
null);
            System.out.println("-> " + grePath.getAbsolutePath());
            LocationProvider locProvider = new
LocationProvider(grePath);

            //mozilla.initEmbedding(grePath, grePath, locProvider);
            mozilla.initXPCOM(grePath, locProvider);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (XPCOMException e) {
            e.printStackTrace();
        }



BUT i received the follow exception when i try to run:

Exception in thread "main" java.lang.AbstractMethodError:
org.mozilla.xpcom.internal.XPCOMImpl.initXPCOM(Ljava/io/File;Lorg/
mozilla/xpcom/IAppFileLocProvider;)Lorg/mozilla/xpcom/
nsIServiceManager;
        at org.mozilla.xpcom.Mozilla.initXPCOM(Mozilla.java:681)
        at gecko1.Main1.main(Main1.java:32)


Somebody can help me?
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to