Compile jmeter2.4 in myeclipse

Source: Internet
Author: User
From: Http://july05122868.javaeye.com/blog/777589

First, I use jmeter2.4. The following two compressed packages are available: jakarta-jmeter-2.4.zipw.jakarta-jmeter-2.4_src.zip. The first one can be used directly. You only need to run jmeter. bat in the bin directory to view the jmeter interface. The second package is the source file, which must be compiled before running.

Next we will start to compile the source code ......

Step 1: Open myeclipse, create a new Java project, configure the project name, select import, select from the File Import, select the directory after jakarta-jmeter-2.4_src.zip extraction, and import.

Step 2: 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, use ant to compile (use the build in the package. XML). At this time, there will be some compilation errors, mainly because the jar package does not exist or the version name of the jar package is inconsistent. (Note: You must copy the jar files in the Lib of jakarta-jmeter-2.4.zip to the lib directory of the project you just created, and create an empty Ext, JUnit, and API folder in the lib directory. Then, note that you need to modify the jar name under lib according to the path value referenced in the. classpath file to keep them consistent ).

Step 3: an error occurs again during compilation. jmeterSource codeOrg. Apache. jmeter. assertions. smimeassertion will report an error, mainly because the package corresponding to org. bouncycastle is missing and the package is downloaded. (Note: The download version of this item is very important. Otherwise, it won't work too well. I'm jdk1.6 and I'm going to renew it ).

OK, so that the compilation can be passed ......

Run jmeter. bat in the bin directory.

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.