How to capture java compiler errors messages

viber101's Avatar, Join Date: Jul 2008
Newbie Member
Im new to java and i want to know how to capture java compiler syntax error messages. . .because i wanted to save the compile errors in a storage area say like a database. please help me.
XXxxImmortalxxXX's Avatar
Invasive contributor
have you tryed

Code:
$javac ClassToCompile.java>file.txt
yet?
viber101's Avatar, Join Date: Jul 2008
Newbie Member
i already tried it. it saves the whole java source code including syntax errors but i just want is save only the syntax errors. .im using bluej compiler which is convenient to use. is there posibility that i can save those error massages in a file using bluej?
XXxxImmortalxxXX's Avatar
Invasive contributor
yea sure is ill post it up in about 30 minutes k
viber101's Avatar, Join Date: Jul 2008
Newbie Member
anyone please help me. . .i need to know how to do it.