Adding images to a JAR file in Eclipse?

Posted by ChrisFreeley on Stack Overflow See other posts from Stack Overflow or by ChrisFreeley
Published on 2010-05-06T22:52:18Z Indexed on 2010/05/06 22:58 UTC
Read the original article Hit count: 175

Filed under:
|
|
|
|

I'm trying to make a game in java, but I'm a bit of a newb. The game has images, and when I run the application from eclipse, they all show up fine. But when I export the project as an application, the images don't show up. When I put the application in the same folder as the images, they show up when I run the application, so someone suggested that I just need to put the image files inside my JAR. Can someone tell me how? Thank you

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse