JMeter source code compilation (Eclipse)

Source: Internet
Author: User

JMeter website offers two downloads: releases and develoer build version two.

For small partners who want to test with JMeter, download the releases version directly, unzip it, and run the Jmeter.bat from the command line.

However, a small partner who wants to learn jmeter source for two times needs to download the developer version.

One/download src bin lib three zip package. Placed in the same file directory, and extracted separately, the decompression process of duplicate files can be directly overwritten.

Second/unzip, install Ant and compile with ant. (Ant installation and use no longer repeat)

1/Navigate to the JMeter root directory to see the Build.xml file. Execute command: Ant download_jars, get the code package needed for compiling;

2/execute ant install PS: if it appears halfway through: "[options] does not set the boot classpath with-source 1.6". Workaround: Change the compiled Java version to 1.7 in Build.xml

Three /import Eclipse

1/New Java Project

New you need to modify the build's output directory when you build it. Because the default directory name is bin, the script under JMeter's Bin directory is overwritten. See the specific operation (renamed to build in this figure):


2/ Using import, select the file system and bring the files for the successful JMeter project into Eclipse's development environment.
3 / Turn off Eclipse and copy the JMeter from Eclipse.classpath to the. classpath file in Java project and click Save.
4 / reopen eclipse


If an error occurs Syntax error,parameterized Types is only available if source level is 5.0

There are two ways of handling:

One is myeclipse the default setting for all projects is 5.0 or less, the project inherits the default settings (MyEclipse in the menu Window/preferences/java/compiler in the IDE to 5.0 or above 5.0)
The other is that a single item is set below source level 5.0 (in Project Properties/java Compiler 5.0 or higher than 5.0)

The source code is successfully imported into eclipse.


JMeter source code compilation (Eclipse)

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.