Hello everybody! I added c:\jss\lib\ dir to PATH environment variable and it worked fine!
Thank all you very much! CERTISIGNBruno de Paula Ribeiro Analista de Desenvolvimento (21) 4501 1816 Certisign Certificadora Digital certisign.com.br -----Mensagem original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de j.fabre Enviada em: segunda-feira, 23 de abril de 2007 11:07 Para: Bruno Telstar Cc: dev-tech-crypto@lists.mozilla.org Assunto: Re: JSS + Windows: UnsatisfiedLinkError Hi Bruno, I put freebl3.dll jss4.dll jss4.jar libnspr4.dll libplc4.dll libplds4.dll nss3.dll nssckbi.dll smime3.dll softokn3.dll ssl3.dll inside "ROOT_UNIT":\WINDOWS\system32 directory and I had no problems. Since I used JSS from an applet, JSS JAR file was in the classpath, I added it from an applet using archive="lib/jss4.jar" inside <applet> tag in my test web page. If you´re not using an applet, you can recover the "java.library.path" property´s value to find out the places in which you can put this file. I hope this could help you. Regards. Jesús el tuty. Bruno Telstar escribió: > Hello folks. > > Im testing JSS to access Firefox certificate store, but I cant go beyond > CryptoManager.initialize(). I have search the old posts in the forum, > looking for something related, but I couldnt find it. > > My system is Windows XP, Im running JDK 1.6, Eclipse and Firefox 2.0.0.3. > > Im first trying to initialize JSS, with the following code: > > ================================ > > String path = C:\Documents and Settings\telstar\Application > Data\Mozilla\Firefox\Profiles\rkl6t1ym.default; > > CryptoManager.InitializationValues vals = new > CryptoManager.InitializationValues(path); > > CryptoManager.initialize(vals); > > ================================ > > The last line of the above code is throwing the following exception: > > ================================ > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no jss4 in > java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at > org.mozilla.jss.CryptoManager.loadNativeLibraries(CryptoManager.java:1337) > at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:825) > at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:798) > at org.mozilla.jss.tests.ListCerts.main(ListCerts.java:54) > > ================================ > > I created a folder named c:\jss\lib\ witch contains the following files: > > freebl3.dll > jss4.dll > jss4.jar > libnspr4.dll > libplc4.dll > libplds4.dll > nss3.dll > nssckbi.dll > smime3.dll > softokn3.dll > ssl3.dll > > I also added c:\jss\lib\ jss4.jar to CLASSPATH variable, but the problem > persists. > > Does anybody know what is happening? I probably must be doing something very > stupid, but I cant figure out. > > Thanks in advance! > > Bruno. > > _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto