Hi All,
I'm trying to get familiar with the SWT framework. I would like to add XPCom component to some simple example but when I try to register it I get the following:
Exception in thread "main" org.mozilla.xpcom.XPCOMException: Failed to register JavaXPCOM methods (0xc1f30001)
at org.mozilla.xpcom.internal.JavaXPCOMMethods.registerJavaXPCOMMethodsNative(Native Method)
at org.mozilla.xpcom.internal.JavaXPCOMMethods.registerJavaXPCOMMethods(JavaXPCOMMethods.java:60)
at org.mozilla.xpcom.internal.MozillaImpl.initialize(MozillaImpl.java:48)
at org.mozilla.xpcom.Mozilla.initialize(Mozilla.java:668)
at dev.co.test4XPCom.main(test4XPCom.java:49)
This is the code I'm using for the registration:
Mozilla mozilla = Mozilla.getInstance();
mozilla.initialize(new File("C:\\Program Files\\XULRunner1.8.1.3\\xulrunner"));
nsIComponentRegistrar registrar = mozilla.getComponentRegistrar();
AECom aecom = AECom.getInstance();
registrar.registerFactory(AECom.CID, "AECom", AECom.CONTRACT_ID, aecom);
Do you have any suggestions?
Kind Regards,
Maurizio
Preparati alla sfida all'ultima combinazione, gioca con Crosswire!
|