I am using eclipse and I use the following code to load my image from a folder.
getClass().getResource("/images/image.jpg").getFile())
The image folder is located inside the bin folder in the project folder. It works fine when loading in eclipse, but when I export it to a jar it does not load. I have tried puting the image folder in all possible places in the jar, but it does not.
How do I load an image folder in a jar?