eclipse导入jmeter源码

下载jar包提示 java.net.UnknownHostException: raw.githubusercontent.com

通过域名工具查找出ip,在C:WindowsSystem32driversetc中hosts中加入

查询域名工具:http://ip.webmasterhome.cn/?ip=raw.githubusercontent.com

所查域名:raw.githubusercontent.com
服务器IP:185.199.111.133 => 美国(GitHub+Fastly节点)

185.199.111.133 raw.githubusercontent.com

1.新建标准java项目
2.右击项目选import filesystem 将apache-jmeter-4.0整个目录勾选allow output folders for source folders
3.勾选apache-jmeter-4.0点击finish
4.右击项目show in terminal
5.输入2个命令del .classpath
ren eclipse.classpath .classpath
6.ant添加该项目下的ant的构建文件build.xml
7.双击ant中的download_jars
8.右击src/core org.apache.jmeter.NewDriver run as java aplication

原文地址:https://www.cnblogs.com/jimmy2019/p/15187625.html