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

后端 未结 21 2024
爱一瞬间的悲伤
爱一瞬间的悲伤 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:04

    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.

提交回复
热议问题