Set a system property in Java

Description

The following code shows how to set a system property.

Example


// ww  w  .j  a va  2s.  c om
public class Main {
  public static void main(String[] argv) throws Exception {
    String previousValue = System.setProperty("application.property", "newValue");
  }
}




















Home »
  Java Tutorial »
    Development »




Java Algorithms
Java Clipboard
Java Compiler
Java Desktop
Java Virtual Machine
Java Math
OS
Random
Java Robot
Java RuntimeMXBean
Java Timer
Java UUID
Java Internationalization