简体   繁体   中英

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. i got Windows 10 OS, and Netbeans 7.3.1 JDK 7 Update 80.. please help me

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

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

In netbeans you have to pass this by in VM Arguments section under Run

Hope this would solve the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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