title: Programmatically Set -X: and -XX: System Properties in JVM
body: <p>I know The -D properties can be set by System.setProperty() which takes the key=>value form. </p>
  
  <p>But how do I set the -XX options. I'm specifically looking to set -XX:+PrintGCDetails inside main();</p>