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

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

问题描述

我刚刚升级JRE到7u45,我的小应用程序接收在启动一个警告信息,称
这个应用程序将在未来的Java安全更新被阻止,因为JAR文件清单不包含权限属性然后,我添加了以下两个属性到我的小应用程序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.

推荐答案

我有同样的问题。
我有明确的codeBase的测试,但警告缺少权限清单属性它将继续出现。

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.

编辑:

最后,我已经找到了解决办法:
MANIFEST.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

我希望这帮助你。

I hope this help you.

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

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