I'm using zip4j to extract zip files. For many users this works fine but a Windows 8 user is getting the following exception:
net.lingala.zip4j.exception.ZipException: net.lingala.zip4j.exception.ZipException: java.lang.IllegalArgumentException: Negative time
at net.lingala.zip4j.unzip.Unzip.initExtractFile(Unzip.java:163)
at net.lingala.zip4j.unzip.Unzip.initExtractAll(Unzip.java:83)
at net.lingala.zip4j.unzip.Unzip.extractAll(Unzip.java:73)
at net.lingala.zip4j.core.ZipFile.extractAll(ZipFile.java:488)
at net.lingala.zip4j.core.ZipFile.extractAll(ZipFile.java:451)
...
Negative time seems to be caused by a file on the file system having a negative time and/or by a JVM bug. Does anyone know how to fix this problem since this is quite odd and not related to my usage of the API I assume.
zip4j hasn't been maintained since 2013 so I wouldn't be surprised if it has some bugs but there just isn't another more capable zip library without boilerplate besides the JDK one. However, I need password protected zip file support and that isn't supported by the JDK.
Installing JDK 11 and using it to run the application does not fix the problem but it was worth a try.