The problem is how you include the image file. You will need to include the image in the JAR when creating it, and you will have to access the image differently:
try { InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream("wing16.png"); BufferedImage img = ImageIO.read(is); } catch (IOException e) {}
You can simply use the img variable to set the image to a JAR.
Update:
Take all the files and class images and go to the command line:
jar -cvfm Test.jar Manifest.mft *.class image.png
Replace Manifest.mft your manifest file name. Replace image.png image you want to display (you can add more images if you need)
source share