ITPub博客

首页 > Linux操作系统 > Linux操作系统 > mac 压缩文件解压缩失败

mac 压缩文件解压缩失败

原创 Linux操作系统 作者:zy_rain 时间:2023-09-12 16:18:24 0 删除 编辑

报错:
Archive:  test.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.
note:  test.zip may be a plain executable, not an archive
unzip:  cannot find zipfile directory in one of test.zip or
        test.zip, and cannot find test.zip, period.


解决办法:
使用jar 解压

解决步骤:
mkdir test
上传jdk文件到test目录
解压jdk
tar -xvf  jdk-8u111-linux-x64.tar.gz

export JAVA_HOME=/软件目录/test/jdk1.8.0_111   --修改软件目录
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/jre/lib/ext

测试java是否配置正确
java -version  
which jar

上传压缩包到test
执行解压命令
jar xvf  test.zip

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30349701/viewspace-2982753/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: linux 6 大页设置
请登录后发表评论 登录
全部评论
没有刻骨铭心的记忆,怎么会有潇洒自如的帅气!

注册时间:2015-07-15

  • 博文量
    16
  • 访问量
    17898