Maven之jdk报错error in opening zip file-yellowcong

╰半夏微凉° 2022-05-16 03:51 615阅读 0赞

今天执行maven编译的时候,发现jdk抽风,报错了,说error in opening zip file ,导致这个问题的原因是jdk的问题。[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._zipfs.jar; error in opening zip ,我们拷贝一下依赖即可,没啥技术活。

错误问题

  1. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._jaccess.jar; error in opening zip file
  2. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunjce_provider.jar; error in opening zip file
  3. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._dnsns.jar; error in opening zip file
  4. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._nashorn.jar; error in opening zip file
  5. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._jfxrt.jar; error in opening zip file
  6. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunpkcs11.jar; error in opening zip file
  7. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._zipfs.jar; error in opening zip file
  8. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunec.jar; error in opening zip file
  9. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._jaccess.jar; error in opening zip file
  10. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunjce_provider.jar; error in opening zip file
  11. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._dnsns.jar; error in opening zip file
  12. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._nashorn.jar; error in opening zip file
  13. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._jfxrt.jar; error in opening zip file
  14. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunpkcs11.jar; error in opening zip file
  15. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._zipfs.jar; error in opening zip file
  16. [ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunec.jar; error in opening zip file

这里写图片描述

解决办法

到ext的目录,然后覆盖一下_xxx.jar的文件,即可解决问题

  1. #进入到ext这个目录
  2. cd /usr/local/jdk1.8.0_121/jre/lib/ext
  3. #强制覆盖一下,即可
  4. \cp cldrdata.jar ._cldrdata.jar
  5. \cp dnsns.jar ._dnsns.jar
  6. \cp jaccess.jar ._jaccess.jar
  7. \cp jfxrt.jar ._jfxrt.jar
  8. \cp nashorn.jar ._nashorn.jar
  9. \cp sunec.jar ._sunec.jar
  10. \cp sunjce_provider.jar ._sunjce_provider.jar
  11. \cp sunpkcs11.jar ._sunpkcs11.jar
  12. \cp zipfs.jar ._zipfs.jar
  13. \cp localedata.jar ._localedata.jar

发表评论

表情:
评论列表 (有 0 条评论,615人围观)

还没有评论,来说两句吧...

相关阅读