title: Eclipse Java SWT Images not loading
body: <p>I am building a Java app using Eclipse and SWT. My app shows all images when I run it from Eclipse, but when i create a runnable .jar file, no images appear (I use images in my Buttons and Labels).</p>
  <p><a href="https://i.stack.imgur.com/VXGQ2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VXGQ2.png" alt="Here is my project structure" /></a></p>
  <p>Here is how I am trying to use my image:</p>
  <pre><code>String redCircleString = &quot;resources/redCircle.png&quot;;
          Image redCircleImage = new Image(display, redCircleString);
          charge_done_display_label.setImage(redCircleImage);
  </code></pre>
  <p>I have tried using an InputString using
  <code>getClass().getClassLoader().getResourceAsStream(file name)</code></p>
  <p>but i get a NullPointerException when i use the input stream in my new Image();
  How can i solve this?</p>