1. libpkcs11wrapper.jnilib -->copy this file to /usr/lib/java
iaikpkcs11wrapper.jar -->copy this file to the same directory
2. CLASSPATH=.:/.../iaikpkcs11wrapper.jar
export CLASSPATH
3. LD_LIBRARY_PATH=/.../libpkcs11wrapper.jnilib
export LD_LIBRARY_PATH
4. javac GetInfo.java
mkdir -p demo/pkcs/pkcs11
copy GetInfo.class to demo/pkcs/pkcs11
java demo/pkcs/pkcs11/GetInfo /usr/lib/libshuttle_p11v220.1.0.0.dylib
阅读(2541) | 评论(0) | 转发(0) |