Im not sure if I have expressed what I want to do very good. I want to pack everything in one jar file, why do this? Because this program is meant for people having trouble with math and computers. It's educational software and I want it to be portable and easy to use. What I want to do is count how many images are stored inside the image folders inside the jar file. Like this:
1. Iterate the image folders inside the jar file this code executes from
2. count how many images are in thisjarfile/images/geometry/ and make an image array with that many elements
3. make the same thing with algebra, calculus, arithmetic etc
4. load the images and put them into the arrays created in step 2
The code I submitted can do that if you compile it and pack it into a jar then executes the jar like a regular java application, but when you try to run it inside eclipse to debug for example it doesn't find any images at all which makes my program crash. Why can't it find the images?
@Ra4king: I did that to express my hate for nullpointers, it's a little joke actually
I will fix it when I make the code ready for release.
@Sproingie: How do you put a zip in the classpath? O_o And how exactly do I make square wheels? I only asked a question xD