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目录下。 

你可能感兴趣的:(android 3des加密Could not instantiate bean class ...)