javaeclipsevirtual-machinejavaagentsclosesocket

agent library failed to init: instrument


The Problem

I'm currently attempting to use the debugger in Eclipse for the first time and received the following error:
image of the error message

Error occurred during initialization of VM
agent library failed to init: instrument
Error opening zip file or JAR manifest missing : /media/david/Linux/Eclipse/eclipse-java-2021-03-R-linux-gtk-x86_64/eclipse/configuration/org.eclipse.osgi/216/0/.cp/lib/javaagent-shaded.jar

What could be the problem that I can not use the debugger and leading to this error?

What I've tried

-javaagent:/media/david/Linux/Eclipse/eclipse-java-2021-03-R-linux-gtk-x86_64/eclipse/configuration/org.eclipse.osgi/216/0/.cp/lib/javaagent-shaded.jar

The Environment


Solution

  • To anyone who has the same problem: I reinstalled eclipse and it worked perfectly fine afterwards.