To specify an additional policy file, set the java.security.policy system property at the command line: : Policy « Security « Java






To specify an additional policy file, set the java.security.policy system property at the command line:

 

c:\java -Djava.security.manager -Djava.security.policy=someURL MyApp

c:\appletviewer -J-Djava.security.policy=someURL HTMLfile

   
  








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 ignore the policies in the java.security file, and use the specified policy, use '==' instead of '='
5.Authorized File Writer