1.下载源码

​http://jmeter.apache.org/download_jmeter.cgi​

2.修改文件名

eclipse.classpath和eclipse.project



ren .\eclipse.classpath .classpath
ren .\eclipse.project .project



3.导入源码到项目

4.ant编译build.xml下载依赖jar包

点击download_jar

install 将jar包同步到环境

5.F4配置依赖

先删除旧的依赖;

再导入新的依赖

最后install

6.找到主类 NewDtiver

7.run主类

8.配置jmeter_HOME系统变量



java.lang.Throwable: Could not access D:\1openSourceWorksapce\lib
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:101)
java.lang.Throwable: Could not access D:\1openSourceWorksapce\lib\ext
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:101)
java.lang.Throwable: Could not access D:\1openSourceWorksapce\lib\junit
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:101)
ERROR StatusLogger Unable to access file:/D:/1openSourceWorksapce/bin/log4j2.xml
java.io.FileNotFoundException: D:\1openSourceWorksapce\bin\log4j2.xml (系统找不到指定的路径。)



-Djmeter.home=D:\apache-jmeter-3.3



IDEA上传到github

创建仓库,add, commit, share