ImageIO.read() works in Eclipse runtime but not as runnable jar file : <p>I've got a problem with loading images implemented in a jar file. Here's my file tree:</p>

<pre><code>    -graphics
    -ImageFiles
         -animation
              -image.jpg
    -mathspace
    -META-INF
</code></pre>

<p>Now I wanna load this image:</p>

<pre><code>    ImageIO.read(getClass().getResource("/ImageFiles/animation/image.jpg"));
</code></pre>

<p>This works well in the eclipse runtime but when I start it as a runnable jar File a NullPointerException gets triggered. Thanks for help!</p>
