Re: FinalizeParams failed when accessing custom component from Java
Marcus Better <[email protected]> Wed, 08 Aug 2007 11:25:12 +0200
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <f9c27e$d2b$1__34813.6851717301$1186565198$gmane$org@sea.gmane.org> |
Javier Pedemonte wrote:
> I would have thought that adding that package to the "Exported Packages"
> section would take care of that.
Perhaps Eclipse uses a separate class loader that doesn't see the classes?
The JavaXPCOMMethods class calls
Class.forName("org.mozilla.interfaces.MyClass"), so it would use its own
class loader.
> How is your project set up in Eclipse?
It's an Eclipse plugin project. In development mode it seems to run my code
from a tree of .class files, which also contains my org.mozilla.interfaces
classes. I tried adding that directory to the "Bootstrap entries" in the
Run dialog, but that didn't help.
> Does it have MozillaInterfaces.jar in its
> classpath, or did you import the JavaXPCOM plugin that contains that jar?
I imported the org.mozilla.xpcom plugin which contains MozillaInterfaces.jar
(where I added my classes).
Marcus