Hi Mira
This link would be helpful to understand the policy thing.
But if I try to quickly highlight on policy file then,
- applet runs on a client machine. Hence the applet code is not allowed to perform certain actions. e.g. delete any file on the client system because if without the user's permission (the user on the client) machine if the applet coded, downloaded from some site, deletes the whole c:\* then its a big concern. I guess that much you already have figured out..
- NOW, how the user specifies permissions he/she wants to give to some applet downloaded from some site so that if he/she is aware of the applet's requirement (that it needs to read some file) then it will not fail?
This is done by the policy file specified by the user on the machine where applet is running.
-Where do we write this policy file? Ans: two locations are possible.
1. in your user home directory on the system and name the file as .java.policy (as you would see in the link provided above)
OR
2. we would put java.policy in the jre/security folder of the JRE used by the browser. Now, how to know the JRE used by the browser is a seperate issues and I hope you are aware of the SUN JRE Plugin etc things...If not feel free to post more questions..
Here note the difference in the file names. one has "." at beginning theother doesn't...
HTH
Maulin