I am working in Java Swing application. I am referring image in my program and it work fine when I run it in Eclipse but when I run it after exporting it doesnt show those files.
My directory hierarchy:
Code 1:
Code 2:
While exporting the jar I have selected Library handling: Package required libraries into generated jar.
after converting jar to zip, the zip file contains all the resources folders in it. and also classpath file contains resources folder included.
I have referred many answers here but nothing helped me. Reffered Questions :
Picture inside .jar file wont work when I export it
Exporting Images with JAR in Eclipse (Java)
Eclipse exported Runnable JAR not showing images