android 3des加密Could not instantiate bean class ...

com.sun.crypto.provider.SunJCE  

Could not instantiate bean class [com.lz.monitor.alert.service.ServiceImp]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com.sun.crypto.provider.SunJCE 
Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.SunJCE 


3DES加密解密调用示例 
文章分类:Java编程 关键字: 3des加密解密调用示例 
在java中调用sun公司提供的3DES加密解密算法时,须要使用到$JAVA_HOME/jre/lib/目录下以下的4个jar包: 

  jce.jar 

  security/US_export_policy.jar 

  security/local_policy.jar 

  ext/sunjce_provider.jar 

  Java运行时会自动加载这些包,所以对于带main函数的应用程序不须要设置到CLASSPATH环境变量中。对于WEB应用,不须要把这些包加到WEB-INF/lib目录下。 
相关文章
相关标签/搜索