I am currently setting a policy file using:
policyURL =cl.getResource("res/policy/abc.policy");
System.out.println(policyURL.toString());
System.setProperty("java.security.policy", policyURL.toString());
The problem is that the file interferes with other running applications.
Is it possible to grant a permission from code and remove it when the application stops? I don't want to modify the java.policy from ProgramFiles.