policytool to read and write a plain text policy file based on user input through the utility GUI.
policytool tool has been deprecated in JDK 9 and might be removed in the next major JDK release.
policytool [ -file ] [ filename ]
policytool command calls an administrator's GUI that enables system administrators to manage the contents of local policy files. A policy file is a plain-text file with a
.policy extension, that maps remote requestors by domain, to permission objects. For details, see Default Policy Implementation and Policy File Syntax.
To run the policy tool administrator utility, use the following command:
To run the
policytool command and load the specified file, use the following command line:
policytool -file mypolicyfile