Is it possible to use the String[] File.list() method to get the files in a directory once the directory is put into a jar file. I have some code that uses this to get a list of resources (for example a list of image files). I would like to convert the application so it is web startable and put the resource in the jar file. Can I do this if I use the File(URI) constructor or should I do it manually with the ZipFile class?
No, you cant use File. Yes you use the Zip classes.