title: Where to place a directory of static files in Eclipse Dynamic Web Project
body: <p>I created a dynamic web project using Eclipse. I have a few java programs which I placed in the "Java Resources/src" folder. These programs use <code>Lucene</code> libraries which I placed in the "<code>WebContent/WEB-INF/lib</code>" folder. The Java programs need access to a few text files and a directory containing the index files generated by <code>Lucene</code>. I placed these static files under <code>WebContent</code> in eclipse so that they appear in the exported WAR file. </p>
  
  <p>I am accessing these static files by referring to them directly in the Java program. </p>
  
  <pre><code>BufferedReader br = new BufferedReader(new FileReader("abc.txt"));
  </code></pre>
  
  <blockquote>
    <p>//abc.txt is in the WebContent folder of Eclipse project.</p>
  </blockquote>
  
  <p>From the JSP page, I am calling the java program (which contains the above line) but it shows a <code>FileNotFoundException</code>. Please help me regarding this.</p>