【问题解决】java.util.jar.JarException: file:bcprov-jdk18on-1.78.jar is not signed by a trusted signer.

现象

启动程序报错,同时在classpath下有多个bcprov-jdk开头的包

Caused by: java.util.jar.JarException: file:/C:/Users/93986/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk18on/1.78/619aafb92dc0b4c6cc4cf86c487ca48ee2d67a8e/bcprov-jdk18on-1.78.jar is not signed by a trusted signer.
at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:502) ~[?:1.8.0_71]
at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322) ~[?:1.8.0_71]
at javax.crypto.JarVerifier.verify(JarVerifier.java:250) ~[?:1.8.0_71]
at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:160) ~[?:1.8.0_71]
at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:186) ~[?:1.8.0_71]
at javax.crypto.Cipher.getInstance(Cipher.java:653) ~[?:1.8.0_71]
at javax.crypto.Cipher.getInstance(Cipher.java:596) ~[?:1.8.0_71]

解决

通过maven或gradle排除掉不需要的包即可。

本文作者:东北小狐狸

本文链接:https://www.cnblogs.com/hellxz/p/18244010

版权声明:本作品采用自由转载-非商用-非衍生-保持署名 (CC BY-NC-ND 3.0)许可协议进行许可。

posted @   东北小狐狸  阅读(436)  评论(0编辑  收藏  举报
历史上的今天:
2019-06-12 【已解决】ERROR: bootstrap checks failed memory locking requested for elasticsearch process but memory is not locked
点击右上角即可分享
微信分享提示
💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起