Hello,
I want to create a webstart package of my program and therefore I need to read everything out of jar’s.
But I have a problem with the MD2Loader2, I can’t get it to work.
MD2Loader2 loader = new MD2Loader2();
MD2Model model = loader.load(Maze.class.getClassLoader().getResource(modelName),new FileInputStream(modelName),skin);
It works when the program is unpacked but when I pack it into a jar, I get “java.io.FileNotFoundException: model/player.md2” (which is the value of the modelName String) when I try to run it
How can I access the file model/player.md2 that is in my maze.jar?