Use aspectjweaver to report "agent library failed to init: instrument" "Error opening zip file or JAR manifest m, aspectjweaver. jar"

Source: Internet
Author: User
Tags netbeans

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.