java.lang.UnsatisfiedLinkError
hi
im working on samrt card project on that im using some of java apis after running these apis im getting this type of error Exception in thread "main" java.lang.UnsatisfiedLinkError: no pkcs11wrapper in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1344) at java.lang.Runtime.loadLibrary0(Runtime.java:744) at java.lang.System.loadLibrary(System.java:815) at iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.ensureLinkedAndInitialized(PKCS11Implementation.java:8 5) at iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.<init>(PKCS11Implementation.java:117) at iaik.pkcs.pkcs11.wrapper.PKCS11Connector.connectToPKCS11Module(PKCS11Connector.java:53) at iaik.pkcs.pkcs11.Module.getInstance(Module.java:165) at SN_S_DN_SC.main(SN_S_DN_SC.java:198) and same api working fine in windows plz can anybody suggest me where im wrong Thanks Jyostna |
your program can't locate some runtime libraries it needs, pkcs11wrapper being one. You need to find out where the lib files are located and add the path to LD_LIBRARY_PATH.
before you run your run your program again do Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/libs |
All times are GMT -5. The time now is 08:09 PM. |