title: Start CMD by using ProcessBuilder
body: <p>I am trying to start the CMD application in windows by using the following code, but it doesn't work as expected. Several examples from different websites shows that "cmd" as an argument in the ProcessBuilder construct should work.</p>
  
  <p>What do I have to do to make my Java app open the CMD application in windows?</p>
  
  <pre><code> public class JavaTest
   {
       public static void main(String[] args) 
       {
           ProcessBuilder pb = new ProcessBuilder("cmd");
  
           try 
           {
               pb.start();
               System.out.println("cmd started");
           } 
           catch (IOException e) 
           {
               System.out.println(e.getMessage());
           }  
       }
   }
  </code></pre>
  
  <p>When I try to use a non-existing application it actually prints out an error, so that means it actually runs "CMD". But the CMD application doesn't pop up as expected?</p>