Quick Tour of Controlling Applets |
A policy file is an ASCII text file and can be composed via a text editor, or via the graphical Policy Tool utility demonstrated in this section. Using the Policy Tool saves typing and eliminates the need for you to know the required syntax of policy files, thus reducing errors.
You will use the Policy Tool to create a policy file named
mypolicy
. In it, you will add a policy entry that grants code from the directory whereWriteFile.class
is stored permission to write thewritetest
file.The steps are the following:
Note for Solaris users: The steps illustrate creating the policy file for a Windows system. The steps are exactly the same if you are working on a Solaris system. Where the text says to store the policy file in theC:\Test
directory, you can store it in~/test
instead.
Quick Tour of Controlling Applets |