StreamFlusher sfErr=new StreamFlusher(process.getErrorStream(), System.err, null);
sfErr.start();
// set flusher on stdout also, if not could stop with too much output
StreamFlusher sfOut=new StreamFlusher(process.getInputStream(), System.out);
sfOut.start();
try {
// must sleep for a couple of seconds, so if there is a jvm startup error,
//the parent process
//is around to catch and report it when the process in executed in verbose mode.
Thread.currentThread().sleep(5000);