|
|
|
|||
|
Grant the Required PermissionsTo grant theGetProps application permission to
read the "user.home" and "java.home"
property values, you must create a policy entry granting those permissions.
Choose the Add Policy Entry button
in the main Policy Tool window.
This brings up the Policy Entry dialog box,
as shown in the following figure.
![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. Type the following file URL
into the CodeBase text box to indicate that you are going to be granting a
permission to code from the specified directory, which is the directory in which
(Note, this is a URL and thus must always have slashes, not backslashes.)file:/C:/Test/ Leave the SignedBy text box blank, since you aren't requiring the code to be signed. To add permission to read the ![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size.
![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. Choose the OK button. The new permission appears in a line in the policy entry window. ![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. To add permission to read the
![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. Choose the OK button. The new permission and the previously added permission appear in lines in the policy entry window, as shown in the following figure. ![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. You are now done specifying this policy entry, so choose the Done button in the Policy Entry dialog. The Policy Tool window now includes a line representing the new policy entry, showing the CodeBase value. ![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. | |||
|