but when i tried to export the project into a Runnable Jar and test it in another pc, everything disappeared, and it make sense cause the other computers doesn't have that path so i did some research and tried this :

This will load image from classpath (from inside the jar the application is run)

If you use eclipse, you should select "graphics" folder and add it as source file. (you then can refer to them with path as "/image.png")later, if you change something in graphics folder, don't forget to refresh workspace in eclipse.

This will load image from classpath (from inside the jar the application is run)

If you use eclipse, you should select "graphics" folder and add it as source file. (you then can refer to them with path as "/image.png")later, if you change something in graphics folder, don't forget to refresh workspace in eclipse.

this doesn't give me any exception errors, but i don't get my image in the Board, i also added the graphic folder as a source file

"It's not at all important to get it right the first time. It's vitally important to get it right the last time."

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org