![]() |
The Java Developers Almanac 1.4 |
|
e87. Setting the Value of a System Property from the Command LineA system property can be set or overridden by specifying the-D
option to the java command when running your program.
java -Dmy.prop="my value" MyApp // Get the value of the system property
String prop = System.getProperty("my.prop");
// my value
e88. Listing All System Properties
© 2002 Addison-Wesley. |