Quick Tour of Controlling Applications |
You will now use the Policy Tool to open the policy file namedmypolicy
created in the Quick Tour of Controlling Applets lesson. You will add a new policy entry that grants code from the directory whereGetProps.class
is stored permission to read the"user.home"
and"java.home"
property values.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, but
- Where the text says to retrieve the
mypolicy
file from theC:\Test
directory, you instead retrieve it from thetest
directory in your home directory.
- In the "Grant the Read Property Permissions" step, substitute
file:${user.home}/test/
forfile:/C:/Test/
.
Quick Tour of Controlling Applications |