jmeter: JMeter cannot be run in macOS Sonoma (Apple Silicon) by Homebrew
Expected behavior
Run jmeter successfully
Actual behavior
JMeter crashed after display startup logo
Below are defailed report. crash_report.log
Steps to reproduce the problem
- Install jmeter by homebrew (automatically install openJDK)
brew install jmeter
- run jmeter in terminal/iTerm2
jmeter
- I re-tested it by Amazon-Corretto-11 & 21, it is the same result.
It looks like no useful info in jmeter.log jmeter.log
JMeter Version
5.6.2
Java Version
11.0.20.1
OS Version
macOS Sonoma Version 14.0 (23A344)
About this issue
- Original URL
- State: open
- Created 9 months ago
- Reactions: 15
- Comments: 29 (1 by maintainers)
Yes, you are right. The binary from Apache Website is working. I think it is related OpenJDK bundled with Homebrew. I see it always imports JAVA_HOME by OpenJDK-17 provided by brew in /opt/homebrew/Cellar/jmeter/5.6.2/bin/jmeter
After edited as below (Then it will use my configured JDK instead of provided by Homebrew), it works.
This worked for me when I run it command line instead of in the .zshrc file
I’ll try to make a small tutorial on this. LMK if you can’t still get it working.
Could you please try downloading and running 5.6.2 from https://jmeter.apache.org/download_jmeter.cgi to rule out homebrew packaging issue?
@RukshanJS
Thanks. Everything is working fine now.
I found this issue when setting up a new M3 machine.
I also use a M1 machine that I’ve used with Jmeter 5.4.3 for a long time and I recently updated it from Ventura to Sonoma and Jmeter continued working normally without the need to install
corretto. So maybe downgrading to an older version can be another possible workaround.Well done. Thanks a lot @RukshanJS
Now, It’s working
I can’t wait for it.
Thanks
will it work if I use sdkman to manage Java versions?
the same fix as @zzxrain doesn’t work for me, m1 with Sonoma
#!/bin/bash JAVA_HOME="/opt/homebrew/opt/openjdk@21" exec "/opt/homebrew/Cellar/jmeter/5.6.2/libexec/bin/jmeter" "$@"if I remove the
JAVA_HOMEfrom the file I still have the same issueif I try to download from https://jmeter.apache.org/download_jmeter.cgi I have the same issue
Any help?
@weisJ , do you think it might be Darklaf-related?
@zzxrain , do you think you could try running without darklaf? For instance: Download sources, replace LAF as follows:
Start JMeter with
./gradlew runGuiWill it launch?