Im new to java and i want to know how to capture java compiler syntax error messages. . .please help me.

Re: How to capture java compiler errors messages 80 80

What do you mean capture?

Re: How to capture java compiler errors messages 80 80

i wanted to save the compile errors in a storage area say like a database

Re: How to capture java compiler errors messages 80 80

If you are using Unix use this, to redirect the output to a file:

$javac ClassToCompile.java>file.txt

Re: How to capture java compiler errors messages 80 80

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?

Re: How to capture java compiler errors messages 80 80

i cannot find a simple answer to that anywhere, i too use bluej, the only way that i see is to actually make an extension for bluej with the CompileEvent used somewhere, i don't write bluej extensions nor do i know how, but if you do then i think it may be the only way

Re: How to capture java compiler errors messages 80 80

i dont know how. anyone know how to please help me.

Re: How to capture java compiler errors messages 80 80
Re: How to capture java compiler errors messages 80 80

Ok you can try running javac command with a redirection to a file with > both in linux and windows

javac .......java > error.txt

If you use an editor the error list you can easily see after compilation

use textpad for the purpose..search google for textpad

install java first then install textpad

use ctrl+1 to compile...u will see error list

Re: How to capture java compiler errors messages 80 80

.im using bluej compiler which is convenient to use. is there posibility that i can save those error massages in a file using bluej?

Ok you can try running javac command with a redirection to a file with > both in linux and windows

javac .......java > error.txt

If you use an editor the error list you can easily see after compilation

use textpad for the purpose..search google for textpad

install java first then install textpad

use ctrl+1 to compile...u will see error list

i don't think that installing a new ide is what viber had in mind

commented: To the original crediter - please "approve" next time =) +2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.