I have four classes in my game; Player.java, Game.java, Island.java and Map.java. And basically its plenty of code to link here however my issue is that my program works fine in eclipse but when i export as jar and run it nothing is opened so i open it with CMD and it gives errors.
Input in CMD:
java -jar GameAlliansen.jar
Output from CMD:
Exception in thread "main" java.lang.NullPointerException at javax.swing.ImageIcon.
This is how i import my images
island = new ImageIcon(Game.class.getResource("/Island(64x64).png"));
https://i.stack.imgur.com/8T2Nv.png Thats my image of project