Previous | Next | Trail Map | Security in JDK 1.2  | Quick Tour of Controlling Applications

Set up the Policy File to Grant the Required Permissions

You will now use the Policy Tool to open the policy file named mypolicy created in the Quick Tour of Controlling Applets(in the Java Security 1.2 trail) lesson. You will add a new policy entry that grants code from the directory where GetProps.class is stored permission to read the "user.home" and "java.home" property values.

The steps are the following:

  1. Open the Policy File

  2. Grant the Required Permissions

  3. Save the Policy File


Note for Solaris users: The instructions illustrate creating the policy file for a Windows system. The steps are exactly the same if you are working on a Solaris system, but


Previous | Next | Trail Map | Security in JDK 1.2  | Quick Tour of Controlling Applications