发生了JNI错误,请检查您的安装并再次尝试线程中的异常" main"

时间:2016-02-24 08:10:33

标签: intellij-idea selenium-webdriver cucumber build.gradle cucumber-java

我在尝试为我的黄瓜项目运行可执行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)

如需更多信息,请告诉我。阅读了很多文章,但无法找到任何解决方案。谢谢提前

0 个答案:

没有答案