Forum Stats

  • 3,752,909 Users
  • 2,250,585 Discussions
  • 7,868,047 Comments

Discussions

Java policy not working

939819
939819 Member Posts: 4
edited Apr 3, 2019 12:42PM in Java User Groups Discussions

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

Answers