javac -d EXTERNAL_DIR SRC_FILEHere are some examples,
javac -d D:\classes MyClass.javajavac -d D:\classes E:\java\MyClass.javaNote that
-d represents a directory and that you'll have to specify a directory to store the class files but not a file. Also, the directory where the class files should be stored must exist. The source file of course must exist first of all.You can see javac -help for more options.
No comments:
Post a Comment