Wednesday, March 24, 2010

Well-known Java System Properties

For security manager:

-Djava.security.manager              //To enable java security manager
-Djava.security.policy=mypolicy      //specify the location of policy file
//This can be replaced by adding a line like policy.url.3=file:/C:/Test/mypolicy into file <Java_home>\jre\lib\security\java.security.

For SSL Connection:
-Djavax.net.debug=ssl                               //Enable ssl debug information
-Djavax.net.ssl.keyStore=/path/to/client.ks     //specify the location of key store
-Djavax.net.ssl.keyStorePassword=password    //password for keystore
-Djavax.net.ssl.trustStore=/path/to/client.ts    //specify the location of trust store

For java.util.logging (See more detail)
-Djava.util.logging.config.class
-Djava.util.logging.config.file        //Location of the configuration file, by default JVM will read <Jre_home>lib/logging.properties 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 
 
-Djava.endorsed.dirs=/opt/apache-tomcat-6.0.26/endorsed  //The Java SE runtime environment will use classes in such JAR files 
                                                                                 //to override the corresponding classes provided in the 
                                                                                 //Java platform as shipped by Sun.
 

No comments:

Google+