Skip to Main Content

Java User Groups

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java policy not working

User_HWYVCMar 31 2019 — edited Apr 3 2019

I am trying to setup a policy in version 8, but when I run an application using the policy file, the policy is ignored

Here is the policy

grant codeBase "file:/c:/users/flash/eclipse-workspace/learning java/bin/" {

  permission java.net.SocketPermission "192.168.0.1", "connect";

};

What am I doing wrong?

Any help is greatly appreciated

Tom

Comments

Processing

Post Details

Added on Mar 31 2019
1 comment
264 views