title: .getResource could not find the file in the resouce folder
body: <p>This may have been asked a lot but for some reason, my getResource method could not find the file in my resource folder. The file is in <code>programfolder/resources/images/drag.png</code>. My getResource code is: </p>
  
  <pre><code>SidebarItem.bufferedImage = ImageIO.read(Main.class.getResource("/images/drag.png"));
  </code></pre>
  
  <p>my classpath is:</p>
  
  <pre><code>&lt;classpathentry kind="src" path="src"/&gt;
  &lt;classpathentry kind="src" path="resources"/&gt;
  </code></pre>
  
  <p>Whenever I run the main class it always throw an exception because it could find the <code>drag.png</code> file. Thanks</p>