Rename file in zip with zip4j
问题 I'm using zip4j 1.3.1 to compress files in my application. Now I'm trying to rename the file inside the zip without having to rename the file itself. There seems to be a method for that, but it's not working. My code looks like: public static void zipFile(File dstPath, File srcFile, String optionalName) throws ZipException { ZipFile zipFile = new ZipFile(dstPath); ZipParameters parameters = new ZipParameters(); parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE); parameters