currently I have generated a JarOutputStream and a Directory filled with *.java files.
I want to add the final JarOutputStream to a ZipOutputStream to return a final *.zip file with the directory and the *.jar file.
Now I wanted to know, how and if I can add JarOutputStream to a ZipOutputStream.
Thanks alot!
I'm not sure what you actually mean with "I have generated a JarOutputStream". But if you want to write content to a JAR file that is then written to a ZIP file, without the need to hold everything in memory, you could do this the following way: