0

C:\apache-jmeter-4.0\bin>jmeter.bat The JMETER_HOME environment variable is not defined correctly This environment variable is needed to run this program

JMETER_HOME is set correctly in environment variable.

ApacheJMeter.jar is working fine.

Similar issue found in below link but this also not helping me.

JMETER_HOME environment variable is not defined

Chitta Ranjan
  • 131
  • 1
  • 2
  • 9

2 Answers2

0

You don't need to set JMETER_HOME variable manually, jmeter.bat script should detect it automatically.

Just in case you want to override it for any reason make sure you do this carefully and the variable points to your JMeter installation like:

set JMETER_HOME=C:\apache-jmeter-4.0 pushd %JMETER_HOME% && jmeter.bat

It might also be the case that Windows doesn't have necessary permissions assuming JMeter lives in root of system drive, try running command prompt as Administrator

More information:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
-1

You don't need to set JMETER_HOME path explicitly under user variables, just add/change under system variables under path variable as your bin path. If you already have earlier version of JMeter just append with latest version. Path looks like : C:\XXX\apache-jmeter-4.0\bin