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

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

    I too faced the issue in Maven based project. The issue occurred because of corrupted jars. Deleted the jars from .m2 folder and built the project again; and it worked like charm.

提交回复
热议问题