Wednesday, March 24, 2010

Well-known Java System Properties

For security manager:              //To enable java security manager      //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\

For SSL Connection:                               //Enable ssl debug information     //specify the location of key store    //password for keystore    //specify the location of trust store

For java.util.logging (See more detail)
-Djava.util.logging.config.file        //Location of the configuration file, by default JVM will read <Jre_home>lib/ 
-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: