Ok, I'm using the java compiler from the command line and was wondering if there was a way i could save the error messages it generates to a file.
echo javac folder/file.java > errorList.txt only produces the line I typed in, although I know that file.java has a bunch of errors.
Is there a way I can actually get the data the compiler generates into a text file? I mean an IDE is somehow able to pull the messages it generates to put somewheree. I just think it'd be useful for (among other things) going back and fixing my code without having to switch back and forth between the console (Since I'm using TextPad)
Technology can never substitute for knowledge.
Joined: Nov 02, 2007
Someone on another board told me to just write javac file.java 2> output.txt