RES: [Discuss] Building an XPCom component in Java

Murilo Camões Perrone mperrone at certisign.com.br
Thu Dec 8 11:13:08 EST 2005


Brian,

By what I read, JavaConnect superseeded BlackConnect and solved the issue with arrays. At the same time, XPIDL.EXE knows how to build .java files with the exported interfaces. So it seems that the only thing I miss are the detailed and updated instructions.

Anyway, can the JSS, a Java library, be used in any other language than Java (using JSS3.DLL) ?
The Function entries in JSS3.DLL spell like: Java_org_mozilla_jss_pkcs11_CertProxy_releaseNativeResources

> -----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
> 
> -- 
> Brian King
> www.mozdev.org - free project hosting for the Mozilla community
-------------- 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/20051208/62c0bd70/smime.bin


More information about the Discuss mailing list