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

来源:互联网 发布:ios 添加unity3d插件 编辑:程序博客网 时间:2024/05/18 04:00

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

 

0 0
原创粉丝点击