title: Execute java file with Runtime.getRuntime().exec()
body: <p>This code will execute an external exe application.</p>
  
  <pre><code>private void clientDataActionPerformed(java.awt.event.ActionEvent evt) {                                           
      // TODO add your handling code here:      
      try {            
          Runtime.getRuntime().exec("C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe");
      } catch(Exception e) {
          System.out.println(e.getMessage());
      }     
  } 
  </code></pre>
  
  <p>What if I want to execute external java file? Is it possible? For example like this command:</p>
  
  <pre><code>Runtime.getRuntime().exec("cmd.exe /C start cd \"C:\Users\sg552\Desktop\ java testfile");
  </code></pre>
  
  <p>The code does not work from java and cmd prompt. How to solve this?</p>