我正在创建项目的jar文件。而且,每当我尝试使用它时,都会出现相同的错误
错误:发生了JNI错误,请检查您的安装并重试 线程“主”中的异常java.lang.SecurityException:签名文件条目org / bouncycastle / jce / provider / JDKMessageDigest $ RIPEMD256.class没有清单部分 在sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:608) 在sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:341) 在sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 在java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) 在java.util.jar.JarVerifier.update(JarVerifier.java:230) 在java.util.jar.JarFile.initializeVerifier(JarFile.java:383) 在java.util.jar.JarFile.getInputStream(JarFile.java:450) 在sun.misc.URLClassPath $ JarLoader $ 2.getInputStream(URLClassPath.java:977) 在sun.misc.Resource.cachedInputStream(Resource.java:77) 在sun.misc.Resource.getByteBuffer(Resource.java:160) 在java.net.URLClassLoader.defineClass(URLClassLoader.java:454) 在java.net.URLClassLoader.access $ 100(URLClassLoader.java:73) 在java.net.URLClassLoader $ 1.run(URLClassLoader.java:368) 在java.net.URLClassLoader $ 1.run(URLClassLoader.java:362) 在java.security.AccessController.doPrivileged(本机方法) 在java.net.URLClassLoader.findClass(URLClassLoader.java:361) 在java.lang.ClassLoader.loadClass(ClassLoader.java:424) 在sun.misc.Launcher $ AppClassLoader.loadClass(Launcher.java:349) 在java.lang.ClassLoader.loadClass(ClassLoader.java:357) 在sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
pom文件如下
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>XMLChangerTool</groupId>
<artifactId>XMLChangerTool</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk14</artifactId>
<version>1.38</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>18.0</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<excludes>META-INF/*.SF,META-INF/*.DSA,META-INF/*.RSA</excludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>