title: How to access jvmArgs from inside Java?
body: <p>Suppose i have a configuration file like the following to start my application. How can i know from inside the application, value of, say, <code>-Dlog4j.configuration</code></p>
  
  <pre><code>jvmArg=-server
  jvmArg=-Xms512m
  jvmArg=-Xmx1024m
  jvmArg=-Dcatalina.base=tomcat
  jvmArg=-Dcatalina.home={tomcat_HOME}
  jvmArg=-Dcatalina.config=file:cfg/catalina.properties
  jvmArg=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
  jvmArg=-Djava.util.logging.config.file=cfg/logging.properties
  javaMain=org.apache.catalina.startup.Bootstrap
  javaMainArg=-config ../cfg/server.xml
  javaMainArg=start
  jvmArg=-Dlog.directory=log
  jvmArg=-Dlog4j.configuration=file:/cfg/test/log4j.properties
  </code></pre>