I'm trying to export a java project that includes som images, but the images don't show up after exporting it. I've read these similar questions and answers:
Eclipse exported Runnable JAR not showing images
Exporting Images with JAR in Eclipse (Java)
I've tried all the different options that are suggested but the images still don't show up after exporting the project.
I've tried this file structure:
With this structure I create the image with this code:
Image picture = new Image("file:src/Pictures/download.png");
And this file structure:
With this structure I create the image with this code:
Image picture = new Image("file:Pictures/download.png");
When exporting the project I've chosen "Package required libraries into generated JAR":
The images show up when I run the program from Eclipse, but as soon as I export it they disappear. What am I doing wrong? I really feel like I have tried everything, but maybe there's some simple detail that I'm missing?
Thanks!