Reputation: 1237
I am struggling an issue to run ant with JMeter.
I downloaded apache-ant-1.10.3-bin.zip and put it in C:\ant
I extract the ZIP and it created another ant folder (see pic), this is the bin folder C:\ant\ant\bin
I entered to control panel -> system properties -> Advanced tab -> Environment Variables
Under user variables under path I entered ;C:\ant\ant\bin
'ant' ant is not recognized as as internal
what am I missing?
[][path of extracted zip]
[][path of bin file]
[][enter bin file]
[][system variable]
[][system variable2]
[][error in cmd]
Upvotes: 0
Views: 71
Reputation: 58774
ANT_HOME variable should be set to the main folder of ant and not c:\ant\ant\bin
Set the variable name to ANT_HOME and the variable value to apache-install-dir\apache-ant-version and click OK.
For example, the installation directory might be C:\Java\apache-ant-1.7.0.
Select New again to create the ANT_OPTS environment variable.
Set the variable name to ANT_OPTS and the variable value to -Xms256M -Xmx512M and click OK.
Select the PATH environment variable and select Edit.
Add %ANT_HOME%\bin to the end or beginning of the PATH.
In your case set it to
c:\ant\ant
Upvotes: 1