I know that it is an easy task, but after changing my code it stopped working and I can\'t get it back! I use two functions to zip and unzip, even though what it actually does i
I don't know if this is your problem or not, but it is generally good practice to close each zip entry after you finish writing.
See ZipOutputStream.closeEntry().
In the code that you show, the very last entry in the zip would not be closed. You also don't show where you close the JarOutputStream itself. This could be causing you to create invalid zip files, which would have errors when they are read back in using your other method.