I'm using the process builder to launch new main classes. I do builder.inheritIO(); and it works in Eclipse (stdout and stderr redirect to the single console). However, when I export a jar, the the output doesn't redirect (only original process output showing). I'm on Java 7. Any ideas where I should look at?
Some code:
ProcessBuilder builder = new ProcessBuilder(arr);
//builder.redirectOutput();
//builder.redirectError();
//builder.redirectOutput(ProcessBuilder.Redirect.INHERIT);
// those don't work either
builder.inheritIO();
Process p = builder.start();