I am shelling this line of code from VB6 to compile various .java files into classes:
"C:\jdk1.3.1_02\bin\javac -d D:\Temp\SPACE\java_classes
\ -classpath D:\Temp\SPACE\java_classes
This works fine if no problems are encountered in the compile process. But fails if one of the files doesn't compile. No error messages display though to tell the user something has gone wrong. If I run the above command in a DOS window, then I get some error messages that are useful. I was hoping to be able to catch these error messages & relay them back to my VB app so that the user can see what's going on if the command should fail.
I have searched the microsoft website & found some info (http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q173/0/85.ASP&NoWebContent=1
), but unfortunately I can't get their example to work!
If any one can offer any suggestions I would be most grateful. Thank you in advance for your help.