I’m trying to zip files in Java using apache.commons.compress.archivers.zip, it works fine but, i need my archive to be compressed with a specific zip version – 3.0, but no matter what i do, when i check it with ‘zipinfo’ it remains 2.0. Even though when i just use ‘zip’ in my command line the version is 3.0. I tried setting version like this:
zipEntry.setVersionRequired(30);
zipEntry.setVersionMadeBy(30);
please tell me how can fix it, without resorting to calling the command line tool from the Java app, or if there is another library that allows to change it, or if there is a way to integrate the zip cli tool into my app and it still being portable and multi platform
4