I tried to execute JMeter 4.0
from the command prompt in Windows 7
.
I got the following error during execution:
The
For me, setting the Windows environment variable didn't help. Instead it worked when I set the variable at the command line (using the root folder of jmeter).
Like this:
SET JMETER_HOME=C:\apache-jmeter-4.0
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
One reason for getting this error is to have JMETER_HOME variable defined in the environment variables but pointing to the wrong location. I had this problem due to previous installation.
Asually a wrong JMETER_HOME entry causes this. make sure you have JMETER_HOME pointed to jmeter folder not inside bin directory. For example ,from my local windows i am able to see this thie environment variable
Type : echo %JMETER_HOME%