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

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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值