title: Java ProcessBuilder showing console of started java application?
body: <p>I have a JAVA application that launches (using ProcessBuilder) another JAVA application like this:</p>
  
  <pre><code>String val = "something";
  ProcessBuilder processBuilder = new ProcessBuilder("java", "-classpath", dir, appName, val);
  Process p = processBuilder.start();
  </code></pre>
  
  <p>Now, this works fine, appName is launched with the parameter val and it runs and works ... great ... the problem is no Console Window appears ... appName does a LOT of outputting to the console and we need to see it ... how can I start the process with a console?</p>
  
  <p>I am trying stuff like ("CMD.exe", "java", "-classpath", dir, appName, val), etc... but I can't get it right ...</p>
  
  <p>Also, I can't redirect the streams, my program can actually start 5-10 of these appName's, each should have their own console window showing their own information.</p>
  
  <p>Any help would be much appreciated.
  Thanks,</p>