Debug出错,Error opening zip file or JAR manifest....

Debug出错

Error occurred during initialization of VM
agent library failed to init: instrument
Error opening zip file or JAR manifest missing : *\eclipse2019\eclipse\configuration\org.eclipse.osgi\409\0\.cp\lib\javaagent-shaded.jar

这几天在做项目学习,明明一直Eclipse用的一直挺好的不知道为什么Debug突然就用不了了,之前用了几次Debug都没有问题的。想吐槽一下个人觉得还是IDEA好用点,众所周知Eclipse会因为程序员吃饭和睡觉而引发一些让人头大的问题。
先说明一下,正常启动项目是没有问题的,只是Debug功能有问题。

那我就是后面Debug的时候出现了下面这个情况 ,
如下图:


我之前以为是tomcat的问题,换了成了Tomcat8.5还是一样,我原来是Tomcat9。
看了一眼控制台,显示下面这个初始化错误什么的,那我也是很绝望的。
如下图:


又看了一眼这个报错的JAR路径,是Eclipse本身的文件,作为新手的我是不会弄的。然后百度了很多方法试过了没有用。
下面这个链接我没试过,有点嫌麻烦就没弄,懒得创建一个用户切换来切换去。

https://blog.csdn.net/qq_35885488/article/details/82318898


最后我下了一个新的Eclipse,2018.12版本,原来是2019.03版本,然后问题就解决了,Debug没有报错了。
emmmm...
条条大路通罗马嘛,虽然解决方法很傻但是还是解决了嘛,如果这个2018.12版本后面也出现这个问题,我会再试试上面这个链接吧,如果你们觉得不嫌麻烦也可以用上面链接方法试一下。

过几天参加实习,会从第一天开始更新实习心得、部分工作记录等等,有兴趣的朋友可以看看喔

原文地址:https://blog.51cto.com/12133802/2417783

时间: 2024-08-05 19:17:27

Debug出错,Error opening zip file or JAR manifest....的相关文章

使用aspectjweaver时报“agent library failed to init: instrument”“Error opening zip file or JAR manifest m

这个只是个小经验,我至今不知道为什么.今天在Ant的build.xml中增加Kieker的监控时,好几次都碰到这个问题,感觉很莫名其妙: 一般报错类似于这个: Error occurred during initialization of VM agent library failed to init: instrument Error opening zip file or JAR manifest missing : lib/aspectjweaver-1.6.11.jar 这时候对应的bu

maven install 读取jar包时出错;error in opening zip file

错误信息: [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project qchat-common: Compilation failure [ERROR] F

[ERROR] error: error while loading <root>, error in opening zip file error: scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found.

在家编译一个Apache的开源项目,在编译时遇到错误如下: error: error while loading <root>, error in opening zip file [ERROR] error: error while loading <root>, error in opening zip file error: scala.reflect.internal.MissingRequirementError: object scala.runtime in comp

Eclipse中mvn install 报错error in opening zip file

报错信息 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project wms: Compilation failure [ERROR] Failure executing javac, but could not parse the error: [ERROR] 错误: 读取C:\Users\Administrato

Maven - error in opening zip file

在一个maven工程中,有时执行mvn打包,部署,编译等命令,例如mvn clean install -DskipTests -U等命令时,会报类似(error in opening zip file)的Exception,例如在我的其中一个项目中,就报了如下的两个Exception 第一个Exception: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (

spring boot tomcat 打本地包成war,通过Tomcat启动时出现问题: ZipException: error in opening zip file

一个第三方公司提供spring boot 项目,直接启动是ok的, 但是打包成war,通过Tomcat启动,就出现 ZipException: error in opening zip file: 20-Mar-2019 15:48:28.385 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [F:\dev\apache-t

java.util.zip.ZipException: error in opening zip file

今天项目升级,出现了很奇葩的问题.在本地和测试环境测试好好的,将项目打包成war(每次都这样打包)然后上传到阿里云服务器,启动tomcat一直报如下错误: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:220) at java.util.zip.ZipFi

[java ] java.util.zip.ZipException: error in opening zip file

严重: Failed to processes JAR found at URL [jar:file:/D:/tools/apache-tomcat-7.0.64_2/webapps/bbs/WEB-INF/lib/org.restlet.ext.servlet-2.3.0.jar!/] for static resources to be included in context with name [jar:file:/D:/tools/apache-tomcat-7.0.64_2/webap

tomcat 启动时报java.util.zip.ZipException: error in opening zip file

项目运行部署tomcat中,一运行报java.util.zip.ZipException: error in opening zip file,其实tomcat有说明错误文件的位置,打开后发现在tomcat的webapps下面有个其它的项目,项目中的class文件下的lib中的有些jar发现是损坏的,删除掉就好了, 有些人说这个问题是maven导包问题,但我这个项目不是maven项目 原文地址:https://www.cnblogs.com/chenweng/p/8487248.html