Syntax
/d directory
When compiling .java files, use the /d option to specify an output directory other than the current directory for the .class files. If the directory does not exist, JVC will create it. If this option is not specified, JVC will write the .class files to the directory containing the corresponding .java files.
Example
The following command compiles the myClass.java
file into a myClass.class
file and writes this file into the classdir
directory:
JVC /d c:\classdir myClass.java
CAUTION The virtual machine for Java depends upon specific directory locations for .java classes based on the names of the Java packages that contain the .class files. Using this option could cause execution to fail if the VM can’t find the classes it needs to run a Java program. For an explanation of how the VM searches for .class files, see CLASSPATH Environment Variable.