title: Open remote excel file in java
body: <p>I have tried snippet given in the below thread,it works perfectly on the local system where I have developed.</p>
  
  <p>It is an web application ,on click of the button, excel file is generated and at the same time opened.</p>
  
  <p>I am able to open excel sheet when I access the web application link from local system but when I access the application from remote system then It generates the file on my local system but doesn't open the excel file on that remote system.</p>
  
  <p><a href="https://stackoverflow.com/questions/20184041/java-apache-poi-opening-file">Java Apache POI Opening file?</a></p>
  
  <p>Do I need to share the drive? </p>
  
  <p>Edit : 
  Used below snippet to directly open the excel</p>
  
  <pre><code>Process p =    Runtime.getRuntime()    .exec("rundll32
   url.dll,FileProtocolHandler " + "D:\\new.xls");
  </code></pre>