简体   繁体   English

如何向 netbeans 项目授予“全部”权限? | netbeans 8.2

[英]How do I grant 'all' permissions to a netbeans project? | netbeans 8.2

I don't have a policy file or at least i can't find it, how do i grant all permissions to my java projects?我没有策略文件,或者至少我找不到它,如何授予我的 java 项目的all权限? I've seen solutions to edit a my.policy file and grant all permissions and add its path to VM Options but where can I find or how do I generate a policy file?我已经看到了编辑my.policy文件并授予所有权限并将其路径添加到VM Options的解决方案,但是我在哪里可以找到或如何生成策略文件?

The global default policy has been set by the file java\jre\lib\security\java.policy in the JRE.全局默认策略已由 JRE 中的文件java\jre\lib\security\java.policy设置。 And it is shared by all of the Java programs that run in the JVM on the node.并且它由节点上 JVM 中运行的所有 Java 程序共享。 Default permissions for the java.policy file can be found here . java.policy 文件的默认权限可在此处找到。

For more information, please look at Specifying Permissions with the Security Policy and Default Policy Implementation and Policy File Syntax有关更多信息,请查看使用安全策略和默认策略实施和策略文件语法指定权限

Example of a custom policy file could be found here and this policy file tells the Java security manager what to allow and disallow.可以在此处找到自定义策略文件的示例,该策略文件告诉 Java 安全管理器允许和禁止什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM