Re: Registration done - next steps. Re: Problems Registering a XPCOM component in XULrunner environment Re: Question: How to reliably create a XPCOM component for use with javaxpcom?

"Martini" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Organization http://groups.google.com
Message-ID <1155146015.121041.232060__20500.1317350709$1155146154$gmane$org@p79g2000cwp.googlegroups.com>
Javier,

Thanks for the response it definitely kickstarted me in the right
direction.
It turns out that I did not have my classpath updated like you
suspected, however even once I did that I still got the exception.

On closer inspection it seems to be the case that JavaXPCOM
implementation requires  the component interfaces to be in the
org.mozilla.xpcom package. Once I 'moved' my interfaces were part of
that package it all worked.

I really need to clarify regarding the test component - I am not
interested in writing components in Java, the components I am writing
and currently testing with are all C++ components.


Thank you for your help in this matter.  I'm off to do some more
prototyping and probably will have more questions. :^)

Best regards,


Martin



Javier Pedemonte wrote:
> Martini wrote:
> > java.lang.NoClassDefFoundError: org/mozilla/xpcom/dsTestEntryPoint
>
> Currently, if you are embedding XULRunner in a Java app using JavaXPCOM,
> the all the interfaces are defined in MozillaInterfaces.jar.  You seem
> to also want to create a Java-based XPCOM component, which isn't really
> supported yet.  Are you wrapping the Java code of the component in
> Javascript and using LiveConnect to communicate?
>
> New interfaces aren't dynamically loaded, so you need to add the
> dsTestEntryPoint class to your CLASSPATH, alongside
> MozillaInterfaces.jar.  That should get you past this error.
> 
> 
> javier
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.