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?
Debug Configuration -> Arguments
I tried to use this as a VM argument:-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
Debug Configuration -> Source
I tried to manually add the javaagent-shaded.jar with the path includedTo anyone who has the same problem: I reinstalled eclipse and it worked perfectly fine afterwards.