I am tring to generate the html report using ant for that I have performed below steps In my machine java and jmeter is already installed. I performed below steps
- Download Apache Ant and unzip it. Copy the complete unzipped folder to C:\apache-ant-1.9.11-bin
- Open Jmeter folder and then open Extras folder shown inside Jmeter forlder : C:\apache-jmeter-4.0\apache-jmeter-4.0\extras
- Copied the Extras folder and pasted it to C:\apache-ant-1.9.11-bin\apache- ant-1.9.11\bin
Updated build.xml
Djmeter.home=.. - C:\apache-jmeter-4.0\apache-jmeter-4.0 <property name="jmeter.home" value="C:\apache-jmeter-4.0\apache-jmeter-4.0"/>
Created Test.jtl file at C:\apache-ant-1.9.11-bin\apache-ant-1.9.11\bin
Opened the command promt and run below command
C:\apache-ant-1.9.11-bin\apache-ant-1.9.11\bin>ant
It generates belew Error message on command promt.
Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre1.8.0_144\lib\tools.jar Buildfile: C:\apache-ant-1.9.11-bin\apache-ant-1.9.11\bin\build.xml
As per your suggestion I added the code below still facing the below error.
here is the path for tool.jar file that I set in above image.