Is there is an API that allows you to compile from a java program? If not,
is this possible from within a java application? And how can I monitor the
output of the compilation?
Any help would be appreciated.
Thanks,
ER
Printable View
Is there is an API that allows you to compile from a java program? If not,
is this possible from within a java application? And how can I monitor the
output of the compilation?
Any help would be appreciated.
Thanks,
ER
"ER" <erivera@amag.com> wrote in message news:3c10e351$1@147.208.176.211...
>
> Is there is an API that allows you to compile from a java program?
No.
> If not,
> is this possible from within a java application? And how can I monitor the
> output of the compilation?
Use Runtime.getRuntime().exec() to execute the command line "javac ...". It
returns a Process object, and you can use its getErrorStream() method to
read the error messages that are sent to the console.
PC2