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

前端 未结 5 1481
佛祖请我去吃肉
佛祖请我去吃肉 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:52

    This problem occurs Due to jar file was downloaded is corrupted.

    if you are using Maven.

    • For Solving this issue, Delete Particular Jar File in C:/Users/public/.m2/repository folder.
    • After that add New Version of Maven in POM.xml.
    • Rebuild and try. It will work fine.

提交回复
热议问题