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. > > I’m testing JSS to access Firefox certificate store, but I can’t go beyond > CryptoManager.initialize(). I have search the old posts in the forum, > looking for something related, but I couldn’t find it. > > My system is Windows XP, I’m running JDK 1.6, Eclipse and Firefox 2.0.0.3. > > I’m 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 can’t figure out. > > Thanks in advance! > > Bruno. > > _______________________________________________ dev-tech-crypto mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-crypto

