There are always problems after several rounds. Here we record:
1. Create a Java project named jmeter in eclipse and select "allow output folders for source Folders" in the next step to prevent the bin directory from being cleared as the output directory during source code import;
2. Choose to import the apache-jmeter-2.7 source code from the file system;
3. Close eclipse and change eclipse. classpath to. classpath under the project directory;
4. Execute ant download_jars in the project directory, or copy all the files in the lib directory of the installed jmeter first;
5. Execute ant package in the project directory;
6. Open eclipse, refresh the lib directory, and reload all the Lib directories to compile and pass;
7. Run as Java application and select "new driver". The first operation fails;
8. Open Run dialog and select "$ {workspace_loc: jmeter/bin}" as the working directory to run jmeter.