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.
--
View this message in context:
http://www.nabble.com/JSS-%2B-Windows%3A-UnsatisfiedLinkError-tf3620312.html#a10109190
Sent from the Mozilla - Cryptography mailing list archive at Nabble.com.
_______________________________________________
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto