So I have created a GUI application, I have set the image for each frame using this:
ImageIcon img = new ImageIcon("./Icons/icon32x32.png");
frame.setIconImage(img.getImage());
frame.setVisible(true);
When I run it through Eclipse, the image is being displayed successfully, but when I export the project to a .jar file it doesn't.
I have tried running the jar in both "double click" fashion and by using CMD
java -jar jarfilename.jar