Hello,
This might not be appropriate for an advanced category, but never the less I'm trying my luck here.
See, I have this problem where I call a commandline application (a windows .exe) from my
java app:
//commands, and arguments
list = new ArrayList<
String>();
list.add("myCmd");
processBuilder = new ProcessBuilder(list);
processBuilder.directory(someDir);
process = processBuilder.start();
This is all fine and dandy. However, the commandline app. sometimes throws an exception which bubbles all the way up to OS level resulting in an alert box, and pausing execution.
Question: how to catch an exception thrown by a commandline app. which is invoked from a Java app. from within that same Java app.
Any help on this 'issue' would be much appreciated.
cheers
-michael