java - The texture does not load after you export to jar -
i have problem problem game created of lwjgl 2.9.3. when export project jar. program not want read through of textures. in eclipse worked properly. files loaded in jar.
the error appears
exception in thread "thread-42" java.lang.runtimeexception: resource not found: pajak/chodzenie/1.png @
org.newdawn.slick.util.resourceloader.getresourceasstream(resourceloader.java:69)
the method reads texture
public static texture loadtexture(string path,string filetype){ texture tex = null; inputstream in = resourceloader.getresourceasstream(path); try { tex = textureloader.gettexture(filetype, in); } catch (ioexception e) { // todo auto-generated catch block e.printstacktrace(); } return tex; }
loading textures
theoretically, right, however, not work. rest of files have no problems. help
Comments
Post a Comment