[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-ssl] PKCS11 Wrapper Question



Hi,
 
I am using IAIK toolkit java wrapper for accessing Chrysalis-ITS Luna 3 Token. I am using the file SimpleTest.java in folder wrapper under pkcs11 when i unzipped the toolkit for PKCS11. But i get an error when in the constructor of SimpleTest class, it tries to connect to library using line
 
    myPKCS11Module_ = PKCS11Connector.connectToPKCS11Module(pkcs11Module);
 
The exception thrown is
 
java.lang.UnsatisfiedLinkError: no pkcs11wrapper in java.library.path
 
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
 
 at java.lang.Runtime.loadLibrary0(Runtime.java:749)
 
 at java.lang.System.loadLibrary(System.java:820)
 
 at iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.ensureLinkedAndInitialized(PKCS11Implementation.java:85)
 
 at iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.<init>(PKCS11Implementation.java:117)
 
 at iaik.pkcs.pkcs11.wrapper.PKCS11Connector.connectToPKCS11Module(PKCS11Connector.java:53)
 
 at SimpleTest.<init>(SimpleTest.java:83)
 
 at SimpleTest.main(SimpleTest.java:102)
What can be the reason? Please help.
 
Regards
Nick
Senior Developer.