java.util.zip.ZipError: invalid CEN header (bad signature)

前端 未结 5 1432
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-11 10:23

I\'m using Java 1.7.0_40 on Red Hat Linux and I have the following code:

Path zipfile = Paths.get(filename);
FileSystem fs = FileSystems.newFileSystem(zipfil         


        
5条回答
  •  北海茫月
    2021-01-11 10:44

    There are two possible explanations:

    • You have a corrupted ZIP file - Compile error in maven2: "invalid CEN header (bad signature)"

    • It is something to do with ZIP-64:

      • java.util.zip.ZipException: invalid CEN header (bad signature)

      • But also note that ZIP-64 support was only added in 1.7.0_b55; see https://bugs.openjdk.java.net/browse/JDK-4681995

提交回复
热议问题