java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider解决方法

因为加入了jdk的第三方安全库,需要额外配置

1.下载bcprov-jdkxx-xxx.jar

2.将bcprov-jdkxx-xxx.jar放入$JAVA_HOME/jre/lib/ext下

3.打开$JAVA_HOME/jre/lib/security下的java.security文件,在末尾加上

security.provider.x=org.bouncycastle.jce.provider.BouncyCastleProvider

https://blog.csdn.net/u014227715/article/details/77160846
https://www.cnblogs.com/castielangel/p/10303472.html

posted @ 2019-12-23 16:06  antball  阅读(10209)  评论(0编辑  收藏  举报