“无效的签名文件"尝试运行 .jar 时 [英] "Invalid signature file" when attempting to run a .jar
问题描述
我的 java 程序打包在一个 jar 文件中,并使用了一个外部 jar 库,充气城堡.我的代码编译正常,但运行 jar 会导致以下错误:
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:
线程main"中的异常 java.lang.SecurityException:Manifest 主要属性的签名文件摘要无效
我在谷歌上搜索了一个多小时以寻找解释,但发现价值很小.如果有人以前见过这个错误并且可以提供一些帮助,我将不胜感激.
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.
推荐答案
此处列出的解决方案可能会提供一个指针.
The solution listed here might provide a pointer.
底线:
最好保留官方 jar 作为是,只需将其添加为清单文件中的依赖项即可应用程序 jar 文件.
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.
这篇关于“无效的签名文件"尝试运行 .jar 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!