0

I am trying to create a runnable JAR File with IntelliJ. I followed this tutorial: Quickly create Jar artifact for application I have a lot of 3rd party libraries included.

Unfortunatelly I got the following error:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

I created a JAR from the same project with Eclipse and everything was the same except the META-INF/MANIFEST.MF.

MANIFEST.MF in IntelliJ JAR:

Manifest-Version: 1.0
Class-Path: .
Main-Class: com.continental.ref.REFController

MANIFEST.MF in Eclipse JAR:

Manifest-Version: 1.0
Class-Path: .
Main-Class: com.continental.ref.REFController

Name: org/apache/commons/collections/map/AbstractLinkedMap$LinkMapIter
 ator.class
SHA1-Digest: +GMX4XDNU3rbmKNHyTmYDlZT44Q=

Name: org/apache/commons/beanutils/converters/SqlTimeConverter.class
SHA1-Digest: kKXUmTycgy5F07EuojB2tsz9424=

Name: org/apache/commons/collections/bidimap/TreeBidiMap$Node.class
SHA1-Digest: g1+1ao8G8CPfvRmMi61ThauUVGU=

Name: org/apache/commons/collections/comparators/TransformingComparato
 r.class
SHA1-Digest: bd4hdiKvX/OSymUta0Tv5ucbwDQ=
...

I really do not have any IDEA how to force IntelliJ to calculate hashes of the libraries.

Thanks in advance for the help!

Levente
  • 161
  • 1
  • 7

0 Answers0