title: how to get the project path in eclipse?
body: <p>I need to write the the processed data to a particular path within the project folder. When i tried this I got access denied error. Also this code is giving me weblogic server path. not the eclipse project path</p>
  
  <pre><code>FileOutputStream out;
  System.out.println(new File(".").getAbsolutePath());
  out = new FileOutputStream(new File(".").getAbsolutePath());
  workbook.write(out);
  out.close();
  System.out.println("write_demo.xlsx written successfully on disk.");
  </code></pre>
  
  <p>I want write the file to the following path:</p>
  
  <p><code>project-folder/war/write_demo.xlsx</code></p>
  
  <p>How do i do that?</p>