-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JMeter cannot be run in macOS Sonoma (Apple Silicon) by Homebrew #6083
Comments
@weisJ , do you think it might be Darklaf-related?
@zzxrain , do you think you could try running without darklaf? --- a/src/core/src/main/java/org/apache/jmeter/gui/action/LookAndFeelCommand.java
+++ b/src/core/src/main/java/org/apache/jmeter/gui/action/LookAndFeelCommand.java
@@ -172,7 +172,7 @@ public class LookAndFeelCommand extends AbstractAction {
* @return command that would activate the preferred LaF
*/
public static String getPreferredLafCommand() {
- String laf = PREFS.get(USER_PREFS_KEY, null);
+ String laf = "laf:com.apple.laf.AquaLookAndFeel";
if (laf != null) {
return laf;
} Start JMeter with Will it launch? |
I’ll have a look. However the native menu bar used in darklaf is simply the one provided by the jdk, so I’m not sure how much I can do about it. |
I just pull the project and run it without any change, it is successful. |
Facing the same issue. Anyone know a release timeline for the 5.6.3 because seems like the issue is fixed in there (based on the above comment)? |
Could you please try downloading and running 5.6.2 from https://jmeter.apache.org/download_jmeter.cgi to rule out homebrew packaging issue? |
Yes, you are right. The binary from Apache Website is working.
After edited as below (Then it will use my configured JDK instead of provided by Homebrew), it works.
|
the same fix as @zzxrain doesn't work for me, m1 with Sonoma
if I remove the if I try to download from https://jmeter.apache.org/download_jmeter.cgi I have the same issue Any help? |
Hi, could you try with amazon-corretto instead of JDK provided by homebrew ? |
Same issue for me here, but manually running this:
So far seems to be OK. |
I have same issue |
I have same issue:
I executed success in this link https://jmeter.apache.org/download_jmeter.cgi Thanks |
uname -r # => 23.1.0
uname -m # => arm64
brew install corretto
# => successful launch on an M1
JAVA_HOME=/Library/Java/JavaVirtualMachines/amazon-corretto-21.jdk/Contents/Home/ exec /opt/homebrew/Cellar/jmeter/5.6.2/libexec/bin/jmeter |
The problem seems to appear for any java app that uses the native macOS "Screen menu bars" setting
This affects macOS Sonoma systems with a Homebrew OpenJDK. A quick and dirty fix (in the java code) is to avoid setting this property on affected systems. A example can be found at the end of the following code : The test is used in line 253. Obviously, the menu bar will be in the main application window, and not on the top of the screen, which is not a standard behavior for macOS applications. |
This worked for me when I run it command line instead of in the .zshrc file |
After so much hours wasted on this. This is the only solution that really worked. Thanks! 🎉 |
uname -r # => 23.0.1 It doesn't work for me |
uname -r # 23.0.0 Also works fine with amazon-corretto-21.jdk, but installed it manually |
what issue are you facing? "doesn't work" is not enough to help out. |
JMeter not running after I installed those things @RukshanJS ... |
will it work if I use sdkman to manage Java versions? |
I am using SDKMAN. But still doesn't work |
I'll try to make a small tutorial on this. LMK if you can't still get it working. |
I can't wait for it. Thanks |
Running the long command
Works for me. Is there any way to make it work by just calling the |
@hendisantika @Oesoto I have covered the fix (including how to run with just https://youtu.be/5OlvuWOAu7o?si=paDMiE_XXN5o7Uyl Happy testing! P.S. - just published the video and would take some time to process to higher qualities. |
OK Good. Thanks @RukshanJS |
Well done. Thanks a lot @RukshanJS Now, It's working |
Awesome! Super glad it helped. Feedback much appreciated |
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 |
This worked for me!!! Thank you! |
It worked very well for me. Thanks so much. |
This issue is fixed by latest Homebrew, hence close it. |
This worked, however jmeter version has been updated since, so changed /opt/homebrew/Cellar/jmeter/5.6.2/libexec/bin/jmeter to 5.6.3, please note the jmeter version and apply accordingly. |
wrong, the issue is still existing as of August, the 16th, 2024 :( |
I fixed the issue uninstalling the package using brew uninstall jmeter, and then installing manually jmeter following this youtube tutorial: |
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
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)
The text was updated successfully, but these errors were encountered: