Open jmeter source code in eclipse

Source: Internet
Author: User

1. Download jakarta-jmeter-2.4_src.zipand jakarta-jmeter-2.4.zip.

2. Download Three jar packages (it is important that N errors occur), which are mail. jar, JMS. jar, and activation. jar.

3. Copy the jar package in libunder jakarta-jmeter-2.4.zipto the lib directory under jakarta-jmeter-2.4_src.zip and add the downloaded three jar packages. And modify the commons-logging1.1.jar to the commons-logging.jar. Then add three empty folders Ext, JUnit, and API under the lib directory (mainly to correspondJmeterEclipse. classpath .)
4. Open eclipse and create a new one.JavaProject, name, select import, select import from file, select the directory after jakarta-jmeter-2.4_src.zip extraction, select all directories except the src directory. Then import the src directory (because the src directory already exists in the new Java project.
6. Shut down eclipseto install eclipse under jakarta-jmeter-2.4_src.zip. copy the content in classpath to replace. classpath content, and then re-enable eclipse, select project compilation, there will be some compilation errors, mainly because the jar package does not exist or the jar package version name is inconsistent, download the corresponding jar package or modify the jar package name to make it conform. classpath description information until no error is reported during compilation.

7. The jmeter source code org. Apache. jmeter. assertions. smimeassertion reports an error, mainly because the package corresponding to org. bouncycastle is missing and the package is downloaded. (Bcmail. jar and bcprov. Jar)

8. Compile properly at this time. After the compilation is successful, use ant to compile normally (you need to install ant on the local machine and set the Jdl environment variable)

9. After ant compilation is passed, select org. Apache. jmeter. newdriver to set the running configuration.Arguments"Tag,WorkSelect Directory instead of defaultOthersSet/{project directory}/bin. Other Default values. Or you can refer to the http://people.apache.org /~ Mkostrze/jmeter-Eclipse/index.html

10. After the setting is successful, you can run or debugjmeter.

Related Article

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.