My program uses Image.class, which helps me recieve image.
Image img = new ImageIcon("Shooter2D/res/background.jpg").getImage();
When the program is run from the development environment - everything works, after compiling a jar file - does not work. Tell me how to properly set the path to work in the IDE (Intellij IDEA) and in the archive. Shooter2D.jar contain:
- META-INF
Manifest-Version: 1.0
Main-Class: Shooter2Dv22082013.Main
- res
all pictures
- Shooter2Dv22082013
all .class files, main is Main.class
indicative figure: http://imageshack.us/photo/my-images/801/eyjv.png/