Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HI any one pls

 
maha devan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am calling a VB code

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.

Anyone pls
 
Scott Dunbar
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic