RES: [Discuss] Building an XPCom component in Java

Murilo Camões Perrone mperrone at certisign.com.br
Wed Dec 14 17:41:52 EST 2005


Help please !

I need an JavaConnect example (a XPCom component made in java). The sample in mozilla/extensions/java/xpcom/tests did not build with JavaConnect and it looks too simple. The only special thing Foo.java has is an defined queryInterface method.

I have mozjava.jar , javaxpcom.dll and my own java component as a .JAR and a .XPT .
Should I produce a DLL from my .JAR ? How ?

Thanks

> -----Mensagem original-----
> De: discuss-bounces at mozdev.org [mailto:discuss-bounces at mozdev.org]Em
> nome de Brian King
> Enviada em: quinta-feira, 8 de dezembro de 2005 08:52
> Para: discuss at mozdev.org
> Assunto: Re: [Discuss] Building an XPCom component in Java
> 
> 
> Currently you can only write XPCOM components in JavaScript, C++, and 
> Python.
> 
> However ...
> 
> http://www.mozilla.org/projects/javaconnect/
> 
> Murilo Camões Perrone wrote:
> > Hi from Brazil.
> >  
> > Were can I find a guide about building XPCom components in Java ?
> >  
> > Brief intro: I need to build an criptography component. After studing 
> > SecClab, PSM2, NSS, NSPR and JSS, I concluded JSS was the best option. 
> > PSM2 was too simplified and NSS was not object oriented. I was buinding 
> > an C++ object oriented layer above NSS, but decided for JSS as I saw 
> > such layer was goin too big. I had sucessfully build XPCom 
> components in 
> > C++, but with Java I could not.
> >  
> > All I have now are JavaConnect samples.
> > Using XPIDL tool, I generated the java interfaces from gecko-sdk, but 
> > all of them refer to the *_nsID class_*, which I could not find 
> (neither 
> > nsIID class).
> >  
> > The "Using JSS" guide points out DLLs as if they were JARs 
> > (http://www.mozilla.org/projects/security/pki/jss/using_jss.html):
> > How does JSS build into an DLL ?
> > How can an java project use the JSS, NSS, NSPR DLL binaries ?
> >  
> > Thanks in advance,
> > ------
> > Murilo Perrone
> > CertiSign
> >  
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > _______________________________________________
> > Discuss mailing list
> > Discuss at mozdev.org
> > http://mozdev.org/mailman/listinfo/discuss
> 
> 
> -- 
> Brian King
> www.mozdev.org - free project hosting for the Mozilla community
> _______________________________________________
> Discuss mailing list
> Discuss at mozdev.org
> http://mozdev.org/mailman/listinfo/discuss
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4012 bytes
Desc: not available
Url : http://mozdev.org/pipermail/discuss/attachments/20051214/bf8d84e7/smime.bin


More information about the Discuss mailing list