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.