PDA

Click to See Complete Forum and Search --> : Redirect Javac Output


dsheller
Mar 3rd, 2005, 02:04 PM
This probably doesn't belong here... but I have no idea with what regularity the other forums are checked, and this is something I would like to resolve shortly.

Basically I need a way to get the errors that the javac compiler will spit back at you when you use it on command line. I have tried a few things in dos mainly this:

javac test.java > test.txt

But this only returns a blank file, I have a feeling I know why. If anyone knows what I could do that would be great.

:wave:


<Deleted the OT posts, and added the green check mark>

crptcblade
Mar 3rd, 2005, 02:21 PM
Use the Xstdout option

javac -Xstdout output.txt MyClass.java

dsheller
Mar 3rd, 2005, 08:21 PM
Thanks for the help guys =)