title: Open Excel from Java Application
body: <p>If I am tring to open notepad from Java Application then it will open Notepad.But If I will try to open Excel then it is giving me exception.</p>
  
  <pre><code>try
      {
          Runtime.getRuntime().exec("excel");
      }
      catch (IOException e) 
      {
        e.printStackTrace();
      }
  </code></pre>
  
  <p>Following is Exception :</p>
  
  <pre><code>java.io.IOException: Cannot run program "excel": CreateProcess error=2, The system cannot find the file specified
      at java.lang.ProcessBuilder.start(Unknown Source)
      at java.lang.Runtime.exec(Unknown Source)
      at java.lang.Runtime.exec(Unknown Source)
      at java.lang.Runtime.exec(Unknown Source)
      at OpenNotepad.main(OpenNotepad.java:18)
  Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
      at java.lang.ProcessImpl.create(Native Method)
      at java.lang.ProcessImpl.&lt;init&gt;(Unknown Source)
      at java.lang.ProcessImpl.start(Unknown Source)
      ... 5 more
  </code></pre>
  
  <p>When I do start->Run->Excel then it will open excel.</p>