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

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

    It's possible that two different signers mess up java mind.

    Try removing META-INF folder from jar, adding manifest and signing JAR again, it helped me: http://jehy.ru/articles/2013/12/13/invalid-signature-file-digest-for-manifest-main-attributes/

提交回复
热议问题