How do I change the security context for an applet when running it with applet viewer?

Eugene Kuleshov

Use a policy file with an entry specifying full privileges, and a codeBase specifying your entire local drive. For example:

  grant codeBase "file:/C:/-" {
    permission java.security.AllPermission;
Then start appletviewer:

  appletviewer -J-Djava.security.policy=launch.policy launch.html
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.