Use aspectjweaver to report "agent library failed to init: instrument" "Error opening zip file or JAR manifest m, aspectjweaver. jar"
This is just a small experience. I do not know why. When I added the Kieker monitoring feature in Ant build. xml today, I encountered this problem several times, and it was inexplicable:
Generally, an error is similar to this:
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.
The corresponding build. xml statement is as follows:
<jvmarg value="-javaagent:lib/aspectjweaver-1.6.11.jar"/>
I was wondering why I couldn't find the jar package. I found that I could just change it to a configuration like this:
<property name="main.aspectj.jar" location="lib/aspectjweaver-1.6.11.jar"/>...<jvmarg value="-javaagent:${main.aspectj.jar}"/>
These two methods are the same in my opinion. I don't know why the former is not working. A little experience, I believe other friends will also meet, so let's sum up.
Netbeans Problems
You have defined main in newmain. c and main. c, leading to compilation conflicts.
Delete newmain. c or main. c and recompile only. c containing the main function.
For the software netbeans
Do not run projects in windows Default program files.
Java does not seem to recognize the file directory with spaces.