I have an app that I want to jar with its resources.
I have a dir structure such as this -
images/fruit/apple.png
............/orange.png
............/xxx.png
images/plants/tree.png
............./shrub.png
............./xxx.png
com/app/MainApp.class
......./xxx.class
The problem is I don’t know how many images will be in each dir. Even if I did, I’m not going to hand code all the names, that would be silly. If I know ahead of time the specific filename, I can already load that from the jar file.
How do I ‘parse’ or examine the jar file to get the names out? I don’t have a seperate jar, everything is in one jar.
Help, please!
Thanks,
Dr. A>
I can post the code if anyone is interested. Its biggest help is when you don’t know what resources you have in the jar (images, sounds, etc).