Previous | Next | Trail Map | Security in JDK 1.2  | Signing Code and Granting It Permissions [Tools]

Start Policy Tool

To start Policy Tool, simply type
  policytool
at the command line.

This brings up the "Policy Tool" window. Whenever Policy Tool is started, it always tries to fill in this window with policy information from what is sometimes referred to as the "user policy file", which is by default a file named .java.policy in your home directory. If it cannot find the user policy file, it reports the situation and displays a blank "Policy Tool" window (that is, a window with headings and buttons but no data in it):

We will create and work on a policy file other than the user policy file, since the lessons of this trail don't expect modifications to be made to your official user policy file.

Assuming you see the blank "Policy Tool" window (if not, select New in the File menu), you can immediately proceed to create a new policy file, as described in the next step.


Previous | Next | Trail Map | Security in JDK 1.2  | Signing Code and Granting It Permissions [Tools]