Warm tip: This article is reproduced from serverfault.com, please click

JMETER_HOME environment variable is not defined

发布于 2018-02-20 09:51:22

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.

Questioner
plaidshirt
Viewed
0
user7294900 2019-07-17 20:46:56

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)