This question already has an answer here:
- LWJGL Eclipse Resource Deployment 1 answer
I've been searching for days. When I export and create my fat jar it loads and disappears. It can't find my images.
This is what it all looks like. I used something like this to load them:
File a; a = new File("res/theimage.png"); wood = TextureLoader.getTexture("PNG", new FileInputStream(a));
This works just fine in eclipse but the jar can't find the image. I tried putting the first jar with the fat jar in a folder. It still didn't work so I put all project files in there too. Somehow it couldn't find it still. How do you get your res to be in your lwjgl game. I mainly just want to have a jar file that you click and start easily instead of a zip folder with all the files. I don't know how to do any of this. My game without images works just fine. I rather a visual way of doing this.
Can Images be draw without being textures in LWJGL?