It probably depends on what you want to do with these files. As for the text files, you can use Class.getResource() to obtain a URL to the files inside the JAR. You can then easily obtain input and output streams for the URL. This will work for zip files as well as long as you are streaming the resources yourself. See the Java API docs for the java.lang.Class and java.net.URL classes and java.io package more details.