title: Runnable jar exported with eclipse isn't working, in eclipse it still works
body: <p>I'm trying to export a java project in eclipse as a runnable jar, but for some reason the runnable jar doesn't work. If I double click the executable jar, it doesn't do anything. I tried both extract and package required libraries into generated jar.</p>
  
  <p>So I also tried to export some simpler projects, those worked fine. The biggest difference is my real project has files: images and xml files.</p>
  
  <p>In code reference them like this:</p>
  
  <pre><code>File file = new File("Recources/test.xml");
  ImageIcon imageIcon = new ImageIcon("Recources/" + num + ".gif");
  </code></pre>
  
  <p>The structure of the project looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/WsS6B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WsS6B.png" alt="enter image description here"></a></p>
  
  <p>But in the executable jar they look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/7SJtX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7SJtX.png" alt="enter image description here"></a></p>
  
  <p>Thank you for your help.</p>
  
  <p><em>Edit:</em>
  I have tried the 'java -jar filename.jar', but now it says it can't find my resources folder, while in eclipse it can still find it.</p>