Process child = Runtime.getRuntime().exec(processCommand);
It generates an MS word document using an xml file stored in local directory.
If some error occurs in creation of document, how to know that error. I tried using the getErrorStream , but nothing is getting printed.
posted 11 years ago
You'll need to find more information on the VB process. It may be that any errors that are generated are really going to stdout, not stderr. In this case you will want to look at Process.getOutputStream(), not Process.getErrorStream(). Additionally, you may be able to use the exit value of the process also. If the VB process is well designed it should exit with different values based on what error occured.
<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.