Java Examples - Destination of class file
How to set destination of the class file?
Following example demonstrates how to set destination of the class file that will be created after compiling a java file using -d option with javac command.
c:> javac demo.java -d c:\myclasses
The above code sample will produce the following result.
Demo application executed.