缺少Codebase清单属性:xxx.jar [英] Missing Codebase manifest attribute for:xxx.jar

查看:266
本文介绍了缺少Codebase清单属性:xxx.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从 jnlp 启动应用程序时,我收到消息

When I launch application from jnlp I receive message

缺少代码库清单属性:xxx.jar

这意味着什么?

推荐答案

在将JRE更新为1.7u25之后运行内部应用程序时也遇到过这种情况。出现警告是因为1.7u25中引入了一个新的安全功能,以防止未经授权的代码重用。在我的情况下,我还看到了一个对话框,要求我确认我希望应用程序可以访问我的PC。

Just encountered this, too, when running an internal application after updating my JRE to 1.7u25. The warnings appear because of a new security feature introduced in 1.7u25 to prevent unauthorized code reuse. In my case, I was also presented with a dialog asking me to confirm that I wanted the application to have access to my PC.

如果你有权访问jar文件,为它添加两个属性:权限代码库。您需要确定应用程序是否需要访问PC上的所有内容,在这种情况下,您将使用值$ code>所有权限获取权限属性。否则,使用 sandbox ,JRE将限制代码在PC上的访问级别。 Codebase 可能需要与jnlp文件的代码库相同,除非从不同的URL下载该jar文件,在这种情况下它需要是该URL。

If you have access to the jar file, add two attributes to it: Permissions and Codebase. You need to decide if the application requires access to everything on the PC, in which case you would use the value all-permissions for the Permissions attribute. Otherwise, use sandbox and the JRE will restrict the code's access level on the PC. Codebase probably needs to be the same as the codebase for the jnlp file, unless that jar file is being downloaded from a different URL, in which case it needs to be that URL.

参考: Oracle的Java 7文档

这篇关于缺少Codebase清单属性:xxx.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆