2

我在尝试为我的黄瓜项目运行可执行 JAR 文件时遇到问题(发生 JNI 错误,请检查您的安装并重试线程“main”java.lang.SecurityException 中的异常:签名文件条目没有清单部分org/bouncycastle/mail/smime/SMIMEEnvelopedGenerator$Envelo pedGenerator.class)

几个要点:1.) 我使用 Idea IntelliJ 并创建了可执行 JAR 2.) 我使用 Gradle 作为构建工具 3.) 我正在使用黄瓜框架,并且只想使用可执行 JAR 运行我的黄瓜选项中提到的特定测试

请在下面找到完整的错误堆栈跟踪

    Error: A JNI error has occurred, please check your installation and try again
   Exception in thread "main" java.lang.SecurityException: no manifiest section for
   signature file entry org/bouncycastle/mail/smime/SMIMEEnvelopedGenerator$Envelo
 pedGenerator.class
    at sun.security.util.SignatureFileVerifier.verifySection(Unknown Source)
    at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
    at sun.security.util.SignatureFileVerifier.process(Unknown Source)
    at java.util.jar.JarVerifier.processEntry(Unknown Source)
    at java.util.jar.JarVerifier.update(Unknown Source)
    at java.util.jar.JarFile.initializeVerifier(Unknown Source)
    at java.util.jar.JarFile.getInputStream(Unknown Source)
    at sun.misc.URLClassPath$JarLoader$2.getInputStream(Unknown Source)
    at sun.misc.Resource.cachedInputStream(Unknown Source)
    at sun.misc.Resource.getByteBuffer(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

请让我知道所需的更多信息。阅读许多文章,但找不到任何解决方案。提前致谢

4

0 回答 0