applet已请求对打印机进行访问。是否允许此操作?

applet访问打印机安全警告的解决办法

无标题

这样的警告框,选择了“始终允许applet访问打印机”在下次点击打印按钮时还是出现这样的警告框。现在也没有好的方案,现在想到是修改客户端JRE中的配置:

  1. 找到客户端安装的JRE,一般默认安装的C:\Program Files\Java(现系统使用jre1.6)。
  2.  找到jre1.6.0\lib\security文件夹下面的java.policy的文件。使用写字板打开文件如下:(红色字为添加的内容)

    // Standard extensions get all permissions by default

    grant codeBase “file:${{java.ext.dirs}}/*” {
    permission java.security.AllPermission;
    };

    // default permissions granted to all domains

    grant {
    ………………………………………………………………………………………
    permission java.net.SocketPermission “localhost:1024-“, “listen”;

    // “standard” properies that can be read by anyone
    permission java.security.AllPermission;
    permission java.util.PropertyPermission “java.version”, “read”;
    permission java.util.PropertyPermission “java.vendor”, “read”;
    permission java.util.PropertyPermission “java.vendor.url”, “read”;
    permission java.util.PropertyPermission “java.class.version”, “read”;
    ………………………………………………………………………………………
    };

发表评论

Please log in using one of these methods to post your comment:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s