Hi,
using java.util.zip works just fine when creating ZIP files. It only seems that the attribute "Size" is not set properly when using setSize(...).
When I zip the ZipEntry and set the size with setSize(long x), my debugger tells me that the ZipEntry-Object has in fact the desired size set.
But when I open the very same file later on and unzip the ZipEntries, they have a size of -1. When I open this file with WinZip, the correct sizes are shown. When I add files to the Zip file with WinZip, my Java code shows -1 for the files I added via java.util.zip, and correct sizes for the WinZip-added entries.
Any idea on that?
Lorenz