Jar file making - picture problem
I have a big problem. Me and my team made a java project (for our studies), and i need to make a jar of it.
I tell you what i've tried (and then how i've fall):
I have a package named "graph", so i have a folder named "graph".
In this folder i have several source files (*.java), and 2 other folder named "model" and "images". The folder "model" contains more sourcefile, and the folder "images" contains some *.jpg picture, what i need for my program.
I made a build.bat and a run.bat file with these containments:
javac graph/*.java graph/model/*.java
jar cvfe app.jar graph/Control graph/*.class graph/model/*.class graph/images/*.jpg
The program is running, but i have a big problem: i can't see the pictures...
In one of the files whitch uses a picture i use it like this:
What could be the problem?
icon = new ImageIcon("images/switchfalse.jpg");