The JMETER_HOME environment variable is not defined correctly

3,226 views
Skip to first unread message

Fábio Dias

unread,
Apr 10, 2018, 10:23:48 AM4/10/18
to codename-taurus
Hello,

I'm trying to execute the execution.yml file that is provided by Taurus tutorial but I'm getting the error "The JMETER_HOME environment variable is not defined correctly".

I have the .bzt-rc to set the JMeter path to "C:\apache-jmeter-4.0\bin\jmeter.bat" and below are the log that Taurus provide at the command line.

Can anyone help me with this issue?

Thanks a lot.

Fábio Dias

D:\NB19901\Downloads\Taurus Lab Resources>bzt execution.yml
15:16:01 INFO: Taurus CLI Tool v1.11.0
15:16:01 INFO: Starting with configs: ['execution.yml']
15:16:01 INFO: Configuring...
15:16:01 INFO: Artifacts dir: D:\NB19901\Downloads\Taurus Lab Resources\2018-04-10_15-16-01.279912
15:16:01 INFO: Preparing...
15:16:02 INFO: Starting...
15:16:02 INFO: Waiting for results...
15:16:03 INFO: Did not mute console logging
15:16:03 INFO: Waiting for finish...
15:16:04 WARNING: Please wait for graceful shutdown...
15:16:04 INFO: Shutting down...
15:16:04 INFO: Post-processing...
15:16:04 INFO: Test duration: 0:00:02
15:16:04 ERROR: Child Process Error: Empty results, most likely Thread Group (JMeterExecutor) failed. Actual reason for this can be found in logs under D:\NB19901\Downloads\Taurus Lab Resources\2018-04-10_15-16-01.279912
JMeter STDOUT:
The JMETER_HOME environment variable is not defined correctly
This environment variable is needed to run this program
15:16:04 INFO: Artifacts dir: D:\NB19901\Downloads\Taurus Lab Resources\2018-04-10_15-16-01.279912
15:16:04 WARNING: Done performing with code: 1

Dimitri Pribysh

unread,
Apr 11, 2018, 8:22:45 AM4/11/18
to Fábio Dias, codename-taurus

Hello,

This is a known bug for JMeter 4.0 on Windows and it's already fixed in upstream. Unfortunately, until JMeter 4.1 is released, you'll have to use a workaround.

The issue is, JMeter 4.0 process expects that either it is launched from it's root dir (e.g. "C:\apache-jmeter-4.0\"), or JMETER_HOME env variable to be set to JMeter's root dir.


You can use Taurus to work it around by setting this var manually (http://gettaurus.org/docs/ConfigSyntax/#Top-Level-Settings):
```
settings:
  env:
    JMETER_HOME: C:\apache-jmeter-4.0\  # path to your JMeter installation
```

We're considering doing this automatically in Taurus for 4.0, but right now this workaround should suffice.


  Dimitri
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/858f53a6-d55b-4743-bcd0-c7285170d46f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vishakha...@gmail.com

unread,
May 4, 2020, 1:47:37 PM5/4/20
to codename-taurus
Hi Folks,

I am facing problem while setting up Jmeter in Windows10. Below is the issue could somebody can help me on this.

The JMETER_HOME environment variable is not defined correctly
This environment variable is needed to run this program

--
Thank You
Vishakha
Message has been deleted

grey....@gmail.com

unread,
May 5, 2020, 1:30:47 AM5/5/20
to codename-taurus
Hello.
1. Looks like you miss with mailing list, we don't help to solve jmeter questions here.
2. please don't use old threads for questions

---
Taras
Reply all
Reply to author
Forward
0 new messages