Java 7中未签名的Applet权限1.7.0_45 [英] Java 7 unsigned applet permissions 1.7.0_45

查看:262
本文介绍了Java 7中未签名的Applet权限1.7.0_45的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有这需要一定的权限,这是我们签署并授予所有权限的小程序。结果
在开发时,我们却用一个无符号的小程序。结果
我们在自己的主目录设置在用户的.java.policy文件中的所有权限。

We have an applet which requires certain permissions, which we sign and grant all permissions.
At development time however we use an unsigned applet.
We set all permissions in the user's .java.policy file in their home directory.

本已停止工作的1.7.0_45(或可能_40),为未签名Applet不再有多余的权限。结果
我们看到这样的错误:结果
    java.security.AccessControlException:引起访问被拒绝(java.util.PropertyPermissionOurCustomSystemProperty读)

This has stopped working in 1.7.0_45 (or possibly _40), as the unsigned applet no longer has the extra permissions.
We are seeing an error like this:
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "OurCustomSystemProperty" "read")

原因结果
太阳已经改变了未签名的Applet的安全行为1.7.0_45或40结果
他们现在已经创建并设置新的部署属性:

CAUSE
Sun have changed the security behaviour of unsigned applets in 1.7.0_45 or 40.
They have now created and set a new deployment property:

deployment.security.use.user.home.java.policy=false

这意味着用户的的.java.policy文件默认忽略

This means the user's .java.policy file is ignored by default.

解决方案结果
请参阅我的回答如下。

RESOLUTION
Please see my answer below.

推荐答案

解决方案

或者:

一个。编辑您的deployment.properties并设置上述属性设置为true结果
此路径的形式为:C:\\ Users \\用户名\\ AppData \\ LocalLow \\太阳\\的Java \\部署\\ deployment.properties结果
添加一行在文件中的任何地方这样:

A. Edit your deployment.properties and set the above property to true
The path for this is of the form: C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment\deployment.properties
Add a line like this anywhere in the file:

deployment.security.use.user.home.java.policy=true

乙。编辑您的JRE的中央java.policy文件并授予所有权限,你的applet结果
此路径的形式为:C:\\ Program Files文件(x86)的\\的Java \\ jre7 \\ lib \\ security中\\的java.policy

B. Edit your JRE's central java.policy file and grant all permissions to your applet
The path for this is of the form: C:\Program Files (x86)\Java\jre7\lib\security\java.policy

心连心!

这篇关于Java 7中未签名的Applet权限1.7.0_45的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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