How to fix 'WARNING: package sun.awt.X11 not in java.desktop' in jmeter while executing in Non Gui mode in Mac terminal?
Asked Answered
P

2

10

I'm trying to run my test through non gui mode. But it throws the warning in my Mac terminal.

Paule answered 9/8, 2019 at 4:11 Comment(0)
A
8

You can ignore this warning it has no impact.

An alternative is to use jdk 8

If you're looking to learn jmeter correctly, this book will help you.

Actinochemistry answered 9/8, 2019 at 12:42 Comment(0)
M
0

To get rid of that message, change the JAVA_HOME environment variable in your jmeter script from openjdk to jdk 8.

Before:

$ cat $(which jmeter)
#!/bin/bash
JAVA_HOME="/usr/local/opt/openjdk" exec "/usr/local/Cellar/jmeter/5.4.3/libexec/bin/jmeter"  "$@"

After:

$ cat $(which jmeter)
#!/bin/bash
JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home" exec "/usr/local/Cellar/jmeter/5.4.3/libexec/bin/jmeter"  "$@"

My answer is just adding on what @UBIK LOAD PACK rightly pointed out.

Hope this helped.

Muster answered 9/4, 2022 at 0:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.