Friday, June 1, 2012

Granting Applet Permissions With Policy File

This is only relevant for development testing or Intranet deployments, as this needs to be done on the JVM of every PC.

The file to edit is JAVA_HOME/lib/security/java.policy

Add a block at the bottom like this:
grant codeBase "http://xxx.xxx.xxx.xxx/context/-" {
        permission java.security.AllPermission;
};

The "-" behind serves as a wildcard.

References:

No comments:

Post a Comment