“Invalid signature file” when attempting to run a .jar

后端 未结 21 2224
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 05:34

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:

21条回答
  •  青春惊慌失措
    2020-11-22 06:05

    If you are looking for a Fat JAR solution without unpacking or tampering with the original libraries but with a special JAR classloader, take a look at my project here.

    Disclaimer: I did not write the code, just package it and publish it on Maven Central and describe in my read-me how to use it.

    I personally use it for creating runnable uber JARs containing BouncyCastle dependencies. Maybe it is useful for you, too.

提交回复
热议问题