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

enter image description here

theoretically, right, however, not work. rest of files have no problems. help

enter image description here


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -