How to add new System Properties in java

Nelo Angelo picture Nelo Angelo · Mar 16, 2012 · Viewed 53.9k times · Source

Is it possible to add new values to Java System Properties. If there is any how can introduce new keys with there corresponding values in Java System Properties.

Answer

dty picture dty · Mar 16, 2012

Either System.setProperty or use the -Dname=value flag when you start the JVM