Can not export JARS in lwjgl!

Posted by NerdyLegend on Game Development See other posts from Game Development or by NerdyLegend
Published on 2014-06-03T01:41:00Z Indexed on 2014/06/03 3:44 UTC
Read the original article Hit count: 178

Filed under:
|

I did it before but for some reason it's doing the stupid problem again. I want to export as a regular Jar file, not a folder full of files. I export it like in Oskar Veerhoak. cmd says Exception in thread "main" java.lang.RuntimeException: Resource not found: res/F lubberFlap.png at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoa der.java:69) at com_FlubberSpace.MainFS.main(MainFS.java:118) I tested it out with my other project with the same code pretty much. This is how I load my Textures wood = TextureLoader.getTexture("PNG", ResourceLoader.getResourceAsStream("res/wood.png"));

of course it works fine in eclipse but not after export. I havn't tried giving the previous game its' own project, I have it in a package. Can someone record how to export properly? I want a jar file that you just double click to start it. I also want it so nobody can extract the files and see my classes and res.

© Game Development or respective owner

Related posts about java

Related posts about lwjgl