Java 缺少应用程序名称清单属性:
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21997003/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Missing Application-Name manifest attribute for:
提问by Bigjo
I have an application with some external jars I created. With the new java policy I had to sign my application and all jars. I buyed a certificate and signed my jar application and all other jars. Then I got a error "missing permissions attribute in jar manifest
". I added Permissions: all-permissions
to the manifest of my jar (not the other external jars). And now I have the error Missing Application-Name manifest attribute for:...
But I don't know what I have to put as application-name. Is that the name of my jar?
我有一个应用程序,其中包含我创建的一些外部 jars。使用新的 Java 策略,我必须对我的应用程序和所有 jar 进行签名。我购买了证书并签署了我的 jar 应用程序和所有其他 jars。然后我得到了一个错误“ missing permissions attribute in jar manifest
”。我添加Permissions: all-permissions
到我的罐子的清单(不是其他外部罐子)。现在我有错误Missing Application-Name manifest attribute for:...
但我不知道我必须把什么作为应用程序名称。这是我的罐子的名字吗?
I tried to add to the manifest of all other jars "Permissions: all-permissions" but then my application doesn't work at all.
我试图将“权限:所有权限”添加到所有其他 jar 的清单中,但是我的应用程序根本无法运行。
thanks for the answers
谢谢你的回答
采纳答案by Bigjo
This is what helps me out: How do I fix "missing Codebase, Permissions, and Application-Name manifest attribute" in my JNLP app?
这对我有帮助: 如何在我的 JNLP 应用程序中修复“缺少代码库、权限和应用程序名称清单属性”?
I just had to put THREE extra attributes in the manifest of ALL jars.
我只需要在所有罐子的清单中添加三个额外的属性。
回答by Joshua Duxbury
I had this problem and I was also getting security warnings similar to this post
我遇到了这个问题,我也收到了类似于这篇文章的安全警告
It was a quick fix by making sure then when exporting the jar file I had "Export Java source files and resources" ticked. Didn't even need to adjust the manifest file in the end.
通过确保在导出 jar 文件时我勾选了“导出 Java 源文件和资源”,这是一个快速修复。最后甚至不需要调整清单文件。