Yesterday I came across a system property in Java -Djsse.enableCBCProtection=false
which was added in JDK 6u30. I never knew about this till yesterday.
So can anyone tell me where I can find the list of system properties supported in a Java version along with its meaning?
Java™ system properties determine the environment in which a Java program runs by starting a Java virtual machine with a set of values. You can choose to use the default values for Java system properties or you can specify values for them by adding parameters to the command line when you start your application.
Which system property stores installation directory of JRE? Explanation: java. home is the installation directory of Java Runtime Environment.
In Java, you can use System. getProperties() to get all the system properties.
Table of Contents 1. Java System Properties List 2. Get System Property 3. Set System Property 1. Java System Properties List JRE home directory, e.g., “ C:\Program Files\Java\jdk1.7.0_09\jre “. JRE library search path for search native libraries. It is usually but not necessarily taken from the environment variable PATH.
For example, one such system property is “ java.version”=”1.7.0_09 “. Please note that access to system properties can be restricted by the Java security manager and policy file. By default, Java programs have unrestricted access to all the system properties.
You can retrieve all the system properties via System.getProperties () or you can also retrieve individual property via System.getProperty (key). Please note that Access to system properties can be restricted by the Java security manager and policy file.
The table indicates which system properties have different values in different versions of the Java 2 Platform, Standard Edition (J2SE). When the column that lists the default values does not indicate different versions of the J2SE, all supported versions of the J2SE use that default value. Note: Not all properties are listed.
Use this to get list of all supported properties.
Properties props = System.getProperties();
System.out.println(props);
Also see here, most are mentioned .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With