HiveBrain v1.2.0
Get Started
← Back to all entries
patternjavaModerate

"Invalid signature file" when attempting to run a .jar

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
runsignatureattemptingfilewhenjarinvalid

Problem

My java program is packaged in a jar file and makes use of an external jar library, bouncy castle. My code compiles fine, but running the jar leads to the following error:

Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

I've googled for over an hour searching for an explanation and found very little of value. If anyone has seen this error before and could offer some help, I would be obliged.

Solution

The solution listed here might provide a pointer.


Invalid signature file digest for Manifest main attributes

Bottom line :


It's probably best to keep the official jar as
is and just add it as a dependency in the manifest file for your
application jar file.

Context

Stack Overflow Q#999489, score: 48

Revisions (0)

No revisions yet.