title: Locating default root folder for an Eclipse project
body: <p>I am reading a file as follows:</p>
  <pre><code>File imgLoc = new File(&quot;Player.gif&quot;);
  
  BufferedImage image = null;
  
  try {
      image = ImageIO.read(imgLoc);
  }
  catch(Exception ex)
  {
      System.out.println(&quot;Image read error&quot;);
      System.exit(1);
  }
  
  return image;
  </code></pre>
  <p>I do not know where to place my file to make the Eclipse IDE, and my project can detect it when I run my code.</p>
  <p>Is there a better way of creating a BufferedImage from an image file stored in your project directory?</p>