title: Build jar with images inside in Intellij Idea13.1.1
body: <p>my problem is that when i build a jar with intellij 13.1.1 and include images to the jar, the path to the images are broken.
  i get a nullpointerexception.
  when i add the resource folder outside the jar and link the path as you can see in the code example it works. But my aim is to include the resources folder to the jar file, so that i only have one file.
  i run ubuntu.</p>
  
  <p>my project structure:</p>
  
  <pre><code>    res -&gt; images -&gt; button.gif
      src -&gt; programm -&gt; mainclass.java
  </code></pre>
  
  <hr>
  
  <p>code</p>
  
  <pre><code>    image = Toolkit.getDefaultToolkit().createImage("res/images/animation.gif");
      this.setContentPane(new JLabel(new ImageIcon( image)));
  </code></pre>