DOS Log of Compile Errors
by Michael Thomas
(Tutorial Home Page)
This set of files is an example use DOS to create a log of your Java compile
errors. This may be helpful during Development and Debugging.
Files involved:
- MyDosLogCompileErrors.java - simple .java file for testing this example.
public class MyDosLogCompileErrors {
public static void main( String [] args ) {
xxxCompileError; //Compile error.
}
}
- MyDosLogSystemOut_compile.bat - Example of batch file that logs compile
errors.
Contents of File:
rem For running log use: >>
rem For current compile errors only use: >
javac MyDosLogCompileErrors.java > MyDosLogCompileErrors_compile.log 2>&1
type MyDosLogCompileErrors_compile.log
pause