JMETER_HOME environment variable is not defined

Ensure you have installed Java and JMETER Gui works fine first.

Then,

At User Variables add JMETER_HOME followed by D:\Jmeter (Where Jmeter is installed) Next select Path in User variables and add D:\Jmeter\bin(Where Jmeter bin path is)

Save and restart cmd.

P.S: This is for Windows solution


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)


  • First ensure you've Java installed
  • Second you need to ensure the working directory of your call is the JMeter installation directory.

Assumption your JMeter installation is located under:

C:\Program Files (x86)\apache-jmeter-4.0

then you need to set this as working directory.


As you can read in the jmeter.bat file itself:

JMETER_HOME - installation directory. Will be guessed from location of jmeter.bat


This might sound obvious, but I'm getting this error on machines that don't have Java installed. Of course, though a better message might have been nice!