/D - Define Conditional Compilation Symbol

Syntax

/D identifier

This option tells the compiler to consider the identifier as a defined symbol for conditional compilation on all files being compiled. The symbol can be tested in a .java source file by using the #if directive to test if a symbol is defined. See Conditional Compilation for more information.

Example

The following command compiles the myClass.java file, with the WINDOWS and DEBUG preprocessing symbols defined:

JVC /D WINDOWS /D DEBUG myClass.java