12 votes
POLICY File - What is a .policy file and how do I open it?
Learn about .POLICY files and view a list of programs that open them.
Languages
Overview
What is a POLICY file? A POLICY file is a configuration file used by Java Runtime Environment ( JRE ) and Java SE Development Kit (JDK) to determine the granted permissions for each Java program. It contains a list of permission information that specifies the types of system resource accesses that can be used by a Java program.
More Information Java Virtual Machine (JVM) enables a computer to run a Java program. JRE is a software package that includes a JVM implementation and a Java Class Library implementation. JDK is a superset of JRE and also comes with Java programming tools. POLICY files are used by JRE and JDK to determine the permissions of Java programs installed on the computer. The file grants access to actions such as read/write permissions to files in a certain directory. You can create and edit POLICY files with a text editor or the policytool utility, which can be opened by typing policytool at the command line in the JDK. If a POLICY file is updated the Java programs must be restarted in order for the updates to be applied. If there any syntax errors in the POLICY file the Java programs will fail. Using the policytool utility will help prevent syntax errors. There are 2 POLICY files by default, one is a system-wide POLICY file and the other is a user POLICY file. The location of default system-wide POLICY files: Windows: java.home\lib\security\ macOS/Linux: java.home/lib/security/ The location of default user POLICY files ( user.home is the user's home directory): Windows: user.home\.java.policy macOS/Linux: user.home/.java.policy
Document Icon
Breadcrumbs
Previous / Next
In-Depth
.POLICY File Extension
Java Policy Implementation File
| Developer | Oracle |
| Popularity |
3.4 | 12 Votes |
What is a POLICY file?
A POLICY file is a configuration file used by Java Runtime Environment ( JRE ) and Java SE Development Kit (JDK) to determine the granted permissions for each Java program. It contains a list of permission information that specifies the types of system resource accesses that can be used by a Java program.
More Information
Java Virtual Machine (JVM) enables a computer to run a Java program. JRE is a software package that includes a JVM implementation and a Java Class Library implementation. JDK is a superset of JRE and also comes with Java programming tools. POLICY files are used by JRE and JDK to determine the permissions of Java programs installed on the computer. The file grants access to actions such as read/write permissions to files in a certain directory.
You can create and edit POLICY files with a text editor or the policytool utility, which can be opened by typing policytool at the command line in the JDK. If a POLICY file is updated the Java programs must be restarted in order for the updates to be applied. If there any syntax errors in the POLICY file the Java programs will fail. Using the policytool utility will help prevent syntax errors.
There are 2 POLICY files by default, one is a system-wide POLICY file and the other is a user POLICY file. The location of default system-wide POLICY files:
Windows: java.home\lib\security\
macOS/Linux: java.home/lib/security/
The location of default user POLICY files ( user.home is the user's home directory):
Windows: user.home\.java.policy
macOS/Linux: user.home/.java.policy
Common POLICY Filenames
java.policy - The name of the default, system-wide and user POLICY files.
Open over 400 file formats with File Viewer Plus . Free Download
Programs that open POLICY files
Sort
Pricing
Program Name
Platform
Reset
X
Windows
Oracle Java Runtime Environment
Free
Oracle Java SE Development Kit
Free
Mac
Oracle Java Runtime Environment
Free
Oracle Java SE Development Kit
Free
Linux
Oracle Java Runtime Environment
Free
Oracle Java SE Development Kit
Free
Category: Settings Files
Updated: February 24, 2017