I have an app that I want to jar with its resources.
I have a dir structure such as this -
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.
Hi Aaron, I don't know whether my understanding is correct or not. If you want that application can be run as runtime, you can change main method with the other one. Example
On that method, we return Enumeration to the caller. Then the caller can extract that enumeration object according its purpose. Your caller method can print the result into console or file or something else...
Correct me if I am wrong... Hope this help
You know it is dark times when the trees riot. I think this tiny ad is their leader: