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

今天执行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 ,我们拷贝一下依赖即可,没啥技术活。

错误问题

[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._jaccess.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunjce_provider.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._dnsns.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._nashorn.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._jfxrt.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunpkcs11.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._zipfs.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunec.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._jaccess.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunjce_provider.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._dnsns.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._nashorn.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._jfxrt.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunpkcs11.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._zipfs.jar; error in opening zip file
[ERROR] error reading /usr/local/jdk1.8.0_121/jre/lib/ext/._sunec.jar; error in opening zip file

这里写图片描述

解决办法

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

#进入到ext这个目录
cd /usr/local/jdk1.8.0_121/jre/lib/ext

#强制覆盖一下,即可
\cp  cldrdata.jar          ._cldrdata.jar  
\cp  dnsns.jar             ._dnsns.jar
\cp  jaccess.jar           ._jaccess.jar          
\cp  jfxrt.jar             ._jfxrt.jar          
\cp  nashorn.jar           ._nashorn.jar          
\cp  sunec.jar             ._sunec.jar          
\cp  sunjce_provider.jar   ._sunjce_provider.jar           
\cp  sunpkcs11.jar         ._sunpkcs11.jar          
\cp  zipfs.jar             ._zipfs.jar 
\cp  localedata.jar        ._localedata.jar
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

狂飙的yellowcong

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值