I am calling two images using the code below, the first image called shows up when run, and when compiled into a executable jar. The other image shows up when run in eclipse but not when compiled into an executable jar:
Here is the code:
image = Toolkit.getDefaultToolkit().getImage(this.getClass().getResource("myPicture.png"));
Why is this happening?