使用 JRE 7u45 运行小程序时的权限属性警告 [英] Warning on Permissions attribute when running an applet with JRE 7u45

查看:20
本文介绍了使用 JRE 7u45 运行小程序时的权限属性警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将 JRE 升级到 7u45,我的小程序在启动时收到一条警告消息,说此应用程序将在未来的 Java 安全更新中被阻止,因为 JAR 文件清单不包含 Permissions 属性."然后我将以下两个属性添加到我的小程序 Jar 文件(自签名)的清单中:

I've just upgraded JRE to 7u45, and my applet receives a warning message on start-up, saying " This application will be blocked in a future Java security update because the JAR file manifest does not contain the Permissions attribute." Then I added the following two attributes to the manifest of my applet Jar file (self-signed):

Permissions: all-permissions
Codebase: *

但是警告消息并没有消失.我怀疑我错过了其他一些东西,但经过数小时的研究后找不到它们.其他人知道解决方案吗?

However the warning message didn't disappear. I doubt that I'm missing some other things, but can't find them out after hours of research. Anybody else knows the solution?

更新

使用有效证书签名的可信小程序也无法运行.黄色警告消息没有出现,但会显示另一个错误对话框,说明小程序被安全设置阻止,而在 Java 控制面板中更改安全级别或其他内容也无济于事.

Trusted applet that is signed with a valid certificate can't run either. The yellow warning message doesn't show up but another error dialog is displayed saying the applet is blocked by the security settings, while changing the security level or something else in Java Control Panel doesn't help.

推荐答案

我有同样的问题.我使用显式代码库对其进行了测试,但它继续出现警告缺少权限清单属性".

I have the same problem. I test it with a explicit codebase, but the warning "Missing Permissions manifest attribute" it continues appearing.

还尝试将权限更改为沙箱",消息仍然出现,但小程序没有执行某些功能的权限.

Also tried changing permissions to "sandbox", the message still appearing but the applet don't have privileges to execute some functions.

我终于找到了解决方案:清单.mf

Finally I've found the solution: manifest.mf

Manifest-Version: 1.0
Codebase: *
Permissions: all-permissions
Application-Library-Allowable-Codebase: *
Caller-Allowable-Codebase: *
Application-Name: AppName
Created-By: AppCreator

希望对你有帮助.

这篇关于使用 JRE 7u45 运行小程序时的权限属性警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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