Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of all system properties supported by a JRE

Tags:

java

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?

like image 462
Newbie Avatar asked May 26 '12 07:05

Newbie


People also ask

What are system properties in Java?

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 would store all the installation directory of JRE?

Which system property stores installation directory of JRE? Explanation: java. home is the installation directory of Java Runtime Environment.

How do I find system properties in Java?

In Java, you can use System. getProperties() to get all the system properties.

Where to find system properties list in JRE?

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.

Which is an example of system property in Java?

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.

How to retrieve system properties in Java?

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.

What is the J2SE system properties table?

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.


1 Answers

Use this to get list of all supported properties.

    Properties props =  System.getProperties();
    System.out.println(props);

Also see here, most are mentioned .

like image 178
sudmong Avatar answered Oct 19 '22 03:10

sudmong