Mac OS X下iaik-pkcs配置

2536阅读 0评论2011-04-22 xwhbin
分类:系统运维

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 
上一篇:to save our life
下一篇:mac os 切换 32位 jdk