您的位置:首页 > 移动开发

本地运行Applet或者.jnlp后缀名文件报权限问题错误

2014-04-16 14:19 381 查看
1、通过2种方法运行:直接在浏览器中运行、调用appletviewer。其中,applet查看器会忽略applet标记之外的所有HTML标记!

调用浏览器遇到的问题:

application blocked by security settings
Name: WelcomeApplet
From: file:/D:/corejava/v1/v1ch2/WelcomeApplet/
your security settings have blocked a local application from running



2、或者通过.jnlp文件download服务端Java程序

在控制面板程序中 找到Java---security将security level 设置为Medium

打开 控制面板 - Java (32bit) - Security,设置为Medium即可解决问题。




java官方描述权限:(http://www.java.com/en/download/help/jcp_security.xml)


Security levels in the Java Control Panel


Very High

This is the most restrictive security level setting. All the applications that are signed with a valid certificate and include the Permissions attribute
in the manifest for the main JAR file are allowed to run with security prompts. All other applications are blocked.


High

This is the minimum recommended (and
default) security level setting. Applications that are signed with a valid or expired certificate and include the Permissions attribute in the manifest for the main JAR file are allowed to run with security prompts. Applications are also allowed to run with
security prompts when the revocation status of the certificate cannot be checked. All other applications are blocked.


Medium

Only unsigned applications that request all permissions are blocked. All other applications are allowed to run with security prompts. Selecting the
Medium security level is not recommended and will make your computer more vulnerable should you run a malicious application.

更多:http://stackoverflow.com/questions/20967995/java-jnlp-application-blocked-by-security-settings
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐