Loading images from a JAR
Hi,
My class is currently stored in a subdirectory of my JAR file, and in the directory with the class is a "textures" directory, containing all of my images.
When I run my class from the directory before I zip it up to be a JAR, it works fine. But, as soon as I run it as a JAR file, it crashes when loading the images.
Here's the code I'm using to load the images:
BufferedImage temp =null;
String path = this.getClass().getResource("textures/" + imagePath).toString();
temp = ImageIO.read(new File(new URI(path)));
What am I doing wrong?
Thanks for any assistance! =)

