Hallo,
At first I must say, Everything works in Eclipse.
I generate a jar file with Ant. When I start the program it doesn't find the images.
I do it like:
In eclipse there are two folders. One is src (for java files). The other is images(for images).
I put the classes and images in jar file with the following structure
-classes
-images
-META-INF
The code to read images is like:
ImageIcon img = new ImageIcon("http://www.tutorials.de/images/+ "image1.PNG")
JButton button = new JButton(img);
Hilfee******!
At first I must say, Everything works in Eclipse.
I generate a jar file with Ant. When I start the program it doesn't find the images.
I do it like:
In eclipse there are two folders. One is src (for java files). The other is images(for images).
I put the classes and images in jar file with the following structure
-classes
-images
-META-INF
The code to read images is like:
ImageIcon img = new ImageIcon("http://www.tutorials.de/images/+ "image1.PNG")
JButton button = new JButton(img);
Hilfee******!