I tried to execute JMeter 4.0
from the command prompt in Windows 7
.
I got the following error during execution:
The
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)
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!
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
Easiest way: just delete the JMETER_HOME environment variable, run jmeter.bat and variable will be added automatically.
Java
installedAssumption 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
java —version
C:\apache-jmeter-5.3
C:\apache-jmeter-5.3\bin
C:\apache-jmeter-5.3\bin