Search code examples
javapropertiessystem-properties

How to add new System Properties in java


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.


Solution

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