To ignore the policies in the java.security file, and use the specified policy, use '==' instead of '=' : Policy « Security « Java






To ignore the policies in the java.security file, and use the specified policy, use '==' instead of '='

 

java -Djava.security.manager -Djava.security.policy==someURL MyApp

   
  








Related examples in the same category

1.System properties and security policy System properties and security policy
2.Managing Policy Files: By default, the JDK uses the policy files located in
3.Policy Demo
4.To specify an additional policy file, set the java.security.policy system property at the command line:
5.Authorized File Writer