JMETER_HOME environment variable is not defined

前端 未结 10 450
失恋的感觉
失恋的感觉 2020-12-19 02:36

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

I got the following error during execution:

The

相关标签:
10条回答
  • 2020-12-19 03:14

    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)

    0 讨论(0)
  • 2020-12-19 03:15

    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!

    0 讨论(0)
  • 2020-12-19 03:17

    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

    0 讨论(0)
  • 2020-12-19 03:31

    Easiest way: just delete the JMETER_HOME environment variable, run jmeter.bat and variable will be added automatically.

    0 讨论(0)
  • 2020-12-19 03:32
    • 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

    0 讨论(0)
  • 2020-12-19 03:32
    1. ensure java is installed and can check with java —version
    2. assuming the path jmeter installed is C:\apache-jmeter-5.3
      1. add the user variable
        1. press new
        2. add Jmeter variable name as JMETER_HOME
        3. variable value as: C:\apache-jmeter-5.3
      2. add the path
        1. look for Path system variable and press edit
        2. edit it to have C:\apache-jmeter-5.3\bin
        3. it doesnt have Path(very unlikely), than press new and add variable name as path and value as C:\apache-jmeter-5.3\bin
      3. restart cmd and type jmeter should do the job.
    0 讨论(0)
提交回复
热议问题