title: Java, run another application in foreground
body: <p>I want run another application from java code.</p>
  
  <pre><code>Runtime rt = Runtime.getRuntime();
  Process pr = rt.exec("cmd.exe");
  </code></pre>
  
  <p>Process is launched, but in background. How to make it run in foreground?</p>