Forum Stats

  • 3,852,814 Users
  • 2,264,140 Discussions
  • 7,905,150 Comments

Discussions

Java policy not working

User_HWYVC
User_HWYVC Member Posts: 4 Blue Ribbon
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