简体   繁体   English

缺少Application-Name清单属性:

[英]Missing Application-Name manifest attribute for:

I have an application with some external jars I created. 我有一个应用程序,我创建了一些外部罐子。 With the new java policy I had to sign my application and all jars. 使用新的java策略,我必须签署我的应用程序和所有jar。 I buyed a certificate and signed my jar application and all other jars. 我买了一张证书并签了我的jar应用程序和所有其他的罐子。 Then I got a error " missing permissions attribute in jar manifest ". 然后我收到错误“ missing permissions attribute in jar manifest ”。 I added Permissions: all-permissions to the manifest of my jar (not the other external jars). 我添加了Permissions: all-permissions我的jar清单(不是其他外部jar)的Permissions: all-permissions 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. 现在我有错误的Missing Application-Name manifest attribute for:...错误Missing Application-Name manifest attribute for:...但我不知道我必须把它作为应用程序名称。 Is that the name of my jar? 那是我罐子的名字吗?

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 谢谢你的回答

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. 我只需要在所有罐子的清单中加入三个额外的属性。

有关添加到MANIFEST.MF的新安全属性的更多信息, 请参阅此链接

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. 这是一个快速解决方法,确保在导出jar文件时我已经勾选了“导出Java源文件和资源”。 Didn't even need to adjust the manifest file in the end. 甚至不需要调整清单文件到底。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM