日期:2014-05-16  浏览次数:20774 次

centos 下解压zip格式文件的问题
首先我
unzip ****.zip文件出现
Archive: linux.zip
  End-of-central-directory signature not found. Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive. In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of linux.zip or
  linux.zip.zip, and cannot find linux.zip.ZIP, period.

然后按照网上说的 安装了jdk
然后用 jar ***.zip文件又出现
java.lang.IllegalArgumentException
at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:324)
at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:264)
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:91)
at sun.tools.jar.Main.extract(Main.java:868)
at sun.tools.jar.Main.run(Main.java:260)
at sun.tools.jar.Main.main(Main.java:1167)

请各位大侠帮帮忙啊

------解决方案--------------------
你这个格式不是zip的吧.

file xxx.zip看看.


------解决方案--------------------
看输出是zip的.
你的zip什么版本的, 是不是版本太低了, 
我的:
 unzip 命令会输出如下信息.
UnZip 6.00 of 20 April 2009, by Info-ZIP.