/d: — System Property Option (JVIEW/WJVIEW)

Syntax

/d:property=string value

Use the /d: option to set a system property for a Java program. Java programs can read system properties by using the Java.lang.System.getProperties methods. See these methods’ documentation for descriptions of system properties.

Example

The following commands set the user.dir property to some arbitrary value:

JVIEW /d:user.dir=c:\java\test HelloWorld.

-or-

WJVIEW /d:user.dir=c:\java\test HelloWorld.

You can also set user-defined properties. The following commands set the property called “myprop”:

JVIEW /d:myprop=12 HelloWorld

-or-

WJVIEW /d:myprop=12 HelloWorld