Re: ANOMALIES TRYING TO COMPILE JAVA CODE FROM WITH IN A RUNNING JAVA APPLICATION



lbrtchx@xxxxxxxxxxx wrote:
// __ 5. BUT NO ERRROS ARE SHOWN WHEN YOU DO THE COMPILING FROM WITHIN A RUNNING JAVA APP CALLING as tried through (see code snippet above):
...
  aCmmnd = new String[]{"javac", "./test00.java"};
  aOut = SEx.exec(aCmmnd);
...
 NO ERRORS ARE REPORTED

// __ 6. fixing the code will allowed for the compilation of the class

 How do you get the errors from the compilation tried within a running JVM?
lbrtchx@xxxxxxxxxxx <Albretch Muller>

It looks like you do not read from the standard error stream of the child process, only the standard output.


HTH,
Ray

--
XML is the programmer's duct tape.
.