Wednesday, October 12, 2011

Adding policy to a applet java


To Provide permissions to a applet first you need to write a Policy file.

Policy file can be created using a policytool .By this way a policy file can be created.

And to run the applet with the permissions added in the policyfile you need to run the applet in the following way:


appletviewer -J-Djava.security.policy=policy-file  applet-file