执行jnlp文件时出现SecurityException(主jar中缺少必需的权限清单属性) [英] SecurityException during executing jnlp file (Missing required Permissions manifest attribute in main jar)

查看:1584
本文介绍了执行jnlp文件时出现SecurityException(主jar中缺少必需的权限清单属性)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

操作系统:Windows 7 64位

OS: Windows 7 64 bit

Java:jdk1.7.0_51

Java: jdk1.7.0_51

我有一个jnlp文件。当我双击它时,发生异常如下:

I have a jnlp file. When I double click on this, exception is occurred as below:

Application Error: Unable to launch the application
Exception: java.lang.SecurityException: Missing required Permissions manifest attribute in main jar


推荐答案

安全的JAR文件清单属性

JAR文件清单包含有关JAR文件内容的信息,包括安全性和配置信息。

The JAR file manifest contains information about the contents of the JAR file, including security and configuration information.

在签署JAR文件之前将属性添加到清单。

参见在Java教程中修改清单文件,以获取有关向JAR清单文件添加属性的信息。

Add the attributes to the manifest before the JAR file is signed.
See Modifying a Manifest File in the Java Tutorial for information on adding attributes to the JAR manifest file.

权限属性

Permissions属性用于验证RIA运行时请求的权限级别匹配创建JAR文件时设置的权限级别。

The Permissions attribute is used to verify that the permissions level requested by the RIA when it runs matches the permissions level that was set when the JAR file was created.

使用此属性可帮助阻止某人重新部署使用您的证书签名并运行的应用程序它处于不同的权限级别。将此属性设置为以下值之一:

Use this attribute to help prevent someone from re-deploying an application that is signed with your certificate and running it at a different privilege level. Set this attribute to one of the following values:


  • 沙箱 - 在安全沙箱中运行,不需要其他权限。

  • sandbox - runs in the security sandbox and does not require additional permissions.

所有权限 - 需要访问用户的系统资源。

all-permissions - requires access to the user's system resources.

对安全滑块的更改:

此版本中包含对安全滑块的以下更改(7u51):

The following changes to Security Slider were included in this release(7u51):


  • 在高安全性设置下阻止自签名和未签名的小程序

  • 要求高安全性设置的权限属性

  • 警告中等安全设置缺少权限属性的用户

有关详细信息,请参阅 Java控制面板文档。

For more information, see Java Control Panel documentation.

sample MANIFEST.MF

Manifest-Version:1.0

Ant-Version:Apache Ant 1.8.3

创建 - 上传者:1.7.0_51-b13(甲骨文公司)

仅限受信任:真实

Class-Path:lib / plugin.jar

权限:sandbox

代码库:http://myweb.de http://www.myweb.de

应用程序名称: summary-applet

这篇关于执行jnlp文件时出现SecurityException(主jar中缺少必需的权限清单属性)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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