May 2003
Intermediate to advanced
384 pages
9h 37m
English
Some items are customized by setting system properties, whereas others are customized by setting security properties. The following sections explain how to set values for both types of properties.
You can set a system property either statically or dynamically. To set a system property statically, use the -D option of the java command. For example, to run an application named MyApp and set the user.home system property to specify the user home directory /home/marys, enter the following:
java -Duser.home=/home/marys MyApp
To set a system property dynamically, call the java.lang.System.setProperty method in your code, substituting the appropriate property name and ...
Read now
Unlock full access