How to get compile messages?

Hello,

I抦 creating a small compiler for a new scripting language. For this purpose I need to convert my code to java and compile the result java code. My problem is that how I can get messages from java compiler? Main things which I need is warning, error message plus line number.

Any kind of help is appreciated.

Thanks.

[347 byte] By [davooda] at [2007-10-2 19:02:04]
# 1
intercept stdout and stderr.
jwentinga at 2007-7-13 20:41:00 > top of Java-index,Developer Tools,Java Compiler...
# 2
Thanks very much.
davooda at 2007-7-13 20:41:00 > top of Java-index,Developer Tools,Java Compiler...