JMETER_HOME environment variable is not defined

environment-variablesjmeterjmeter-4.0

I tried to execute JMeter 4.0 from the command prompt in Windows 7.

I got the following error during execution:

The JMETER_HOME environment variable is not defined correctly This
environment variable is needed to run this program

I set C:\apache-jmeter-4.0\bin to JMETER_HOME variable, but the problem remains

I can start JMeter with its jar file.

I use jdk1.8.0_162 and set JAVA_HOME environment variable correctly.

Best Answer

You should set JMETER_HOME to main JMeter directory as C:\apache-jmeter-4.0

Also don't set JMeter directory to JAVA_HOME variable (should hold Java installation path)