Bastian
Bastian

Reputation: 1237

Ant is not recognized error in JMeter reports

I am struggling an issue to run ant with JMeter.

  1. I downloaded apache-ant-1.10.3-bin.zip and put it in C:\ant

  2. I extract the ZIP and it created another ant folder (see pic), this is the bin folder C:\ant\ant\bin

  3. I entered to control panel -> system properties -> Advanced tab -> Environment Variables

  4. Under user variables under path I entered ;C:\ant\ant\bin

  5. Under System variable I enter Variable ANT_HOME and value C:\ant\ant\bin
  6. I opened cmd and run ant -version
  7. I got 'ant' ant is not recognized as as internal

what am I missing?

[enter image description here][path of extracted zip]

[enter image description here][path of bin file]

[enter image description here][enter bin file]

[enter image description here][system variable]

[enter image description here][system variable2]

[enter image description here][error in cmd]

Upvotes: 0

Views: 71

Answers (1)

Ori Marko
Ori Marko

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

Related Questions