mozilla.initXPCOM method
Murilo Camões Perrone <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <[email protected]> |
Javier,
I need to instantiate an nsIMutableArray (my component needs to return
an array). But I get an exception when calling initXPCOM method, even
after upgrading to JavaXPCom from XulRunner 1.9 .
The code below works well in JVM envoronment, but fails when called JVM
is started from Mozilla Firefox on the last line.
System.loadLibrary("javaxpcomglue");
java.io.File localFile = new java.io.File( mozillaPath );
if ( localFile == null )
throw new InternalError("Unable to open mozilla path
folder.");
Mozilla mozilla = Mozilla.getInstance();
mozilla.initXPCOM(localFile, null);
Am I doing something wrong?
Thanks,
Murilo
smime.p7s
(application/x-pkcs7-signature, 3.9 KB) - not displayed