[英]Java Netbeans Can't connect to Java DB because of Error
please Help me, i tried the 请帮助我,我尝试了
grant{
//List of granted permissions
permission java.net.SocketPermission "localhost:1527", "listen";
}
but it won't connect in Netbeans. 但无法在Netbeans中连接。 i got Windows 10 OS, and Netbeans 7.3.1 JDK 7 Update 80.. please help me
我有Windows 10操作系统,以及Netbeans 7.3.1 JDK 7 Update 80。
Here is the error: 这是错误:
Are you using external policy file ? 您是否正在使用外部策略文件? By default policy file would be picked from user.home/.java.policy System wide policy file will be from java.home/lib/security/java.policy
默认情况下,将从user.home / .java.policy中选择策略文件。系统范围的策略文件将从java.home / lib / security / java.policy中选择
Looks like this you are using external policy file which you have to pass to the program by using the following property. 看起来您正在使用外部策略文件,您必须使用以下属性将其传递给程序。 -Djava.security.policy=mypolicy
-Djava.security.policy = mypolicy
In netbeans you have to pass this by in VM Arguments section under Run 在netbeans中,您必须在“运行”下的“ VM参数”部分中传递它
Hope this would solve the issue. 希望这能解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.