args.add("org.apache.derby.tools.ij");
final String[] argArray = args.toArray(new String[0]);
final Process p = execJavaCmd(argArray);
SpawnedProcess spawned = new SpawnedProcess(p, "MPT");
spawned.suppressOutputOnComplete(); // we want to read it ourselves
// The started process is an interactive ij session that will wait
// for user input. Close stdin of the process so that it stops
// waiting and exits.
p.getOutputStream().close();