Managing Policy Files
By default, the JDK uses the policy files located in
These policy files are specified in the default security file:
The final policy is the
union of all granted permissions in all policy files. To specify an
additional policy file, you can set the java.security.policy system
property at the command line:
To ignore the policies in the java.security file,
and only use the specified policy, use `==' instead of `=':
Additional policy files can also be added to the java.security file.
For more information on policy files, see
file:${java.home}/lib/security/java.policy
file:${user.home}/.java.policy
${java.home}/lib/security/java.security
> java -Djava.security.manager -Djava.security.policy=someURL MyApp
or
> appletviewer -J-Djava.security.policy=someURL HTMLfile
> java -Djava.security.manager -Djava.security.policy==someURL MyApp
http://java.sun.com/j2se/1.4/docs/guide/security/PolicyFiles.html
Post a comment