Invalid Entry Compressed Size
I'm using a bytecode library known as ASM to alter classfiles, then I want to write each classfile back into a jar file rather than a folder filled with class files. I do this by running this code: My problem occurs when a ZipException is throw for not being the expected size, i.e. java.util.zip.ZipException: invalid entry compressed size (expected 695 but got 693 bytes) at java.util.zip.ZipOutputStream.closeEntry(Unknown Source) at org.steinburg.client.accessor.Accessor.accessJar(Accessor.java:64) at org.steinburg.client.accessor.Accessor.<init>(Accessor.java:41) at Loader.main(Loader.java:5)