0

I'm writing an IDE for java and already got the compiler linked into it, but I can't figure out how to read the data on the System.err or System.out streams.

2
Contributors
3
Replies
4
Views
11 Years
Discussion Span
Last Post by freesoft_2000
0

Hi everyone,

When you run javac.exe, you will need the Process class. In that class see the error stream, input stream

Richard West

0

To use javac, I'm using the compile method from Main in this package. It's in the tools.jar of the lib directory. I can't find any API docs for the package though.

com.sun.tools.javac.Main javac = new com.sun.tools.javac.Main();

0

I can't find any API docs for the package though.
com.sun.tools.javac.Main javac = new com.sun.tools.javac.Main();

You can't find the documentation for it because it is in the com.sun package.
Try not to use this package as there is not gurantee that it will be in the next release.

Try running the external javac.exe by using the runtime class. It works better and is easier

Yours Sincerely

Richard West

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.