title: Why doesn't the Java console show when using ProcessBuilder?
body: <p>I use the following to launch a Java application from another Java app.</p>
  
  <pre><code>    ProcessBuilder pb = new ProcessBuilder(javaPath + javaCommand, maxMemStr,
              minMemStr, stackSizeStr, jarCommand, jarfile, jarArg);
      try {
          Process p = pb.start();
      } catch (IOException ex) {
          Logger.getLogger(launch.class.getName()).log(Level.SEVERE, null, ex);
      }
  </code></pre>
  
  <p>where javaCommand is either java or javaw (javaPath is empty most of the time unless a user points to an alternate path). The problem is, after the app launches, even when I verify the process list to contain java, it doesn't show the console.</p>
  
  <p>Is it because PrcoessBuilder doesn't invoke the command shell? Is there a way to show the console programatically?</p>
  
  <p>Thanks in advance.</p>