visualvm
visualvm copied to clipboard
Running VisualVM.app from Finder still needs Rosetta
Describe the bug when install the latest version 2.1.6, Double-clicking the icon reminded me that I still need to install Rosetta.
To Reproduce Steps to reproduce the behavior:
- Go to 'application'
- Click on 'VisualVM.app'
- See error
Expected behavior VisualVm should works normal.
VisualVM log no log
Screenshots
Desktop (please complete the following information):
- Chip: Apple M1 Pro
- OS: MacOS 13.3.1 (a) (22E772610a)
- JDK version [17.0.7+8-LTS-224]
- Version [2.1.6]
No, it does not need Rosseta. Rosseta is needed by JDK. You need to run VisualVM on correct JDK - the one build for M1. What is the output of /usr/libexec/java_home -V
on your machine?
@thurka
all of the version on my mac is arm64 version ,and default version is jdk 17
This looks OK. Can you please try to run VisualVM from Terminal with the following command and post the output?
bash -x /Applications/VisualVM.app/Contents/MacOS/visualvm --jdkhome /Library/Java/JavaVirtualMachines/jdk-17.0.7.jdk/Contents/Home
This way we could be able to see, which executable needs Rosetta.
@thurka ths for your reply. this way works and the visualvm started successfully. here is the log , and i still get no using msg why with --jdkhome params , the visualvm can start on my mac.



this way works and the visualvm started successfully.
Hmm, too bad that this way you cannot reproduce it. The log does not provide any insigth, what is goign on.
Can you see if removing --jdkhome
option makes any difference?
bash -x /Applications/VisualVM.app/Contents/MacOS/visualvm
@thurka
even if no params --jdkhome it still can start normally from terminal and use jdk 20,
but if I start from launchPad and click the icon, it still reminds me to install rosetta, maybe something is wrong with my local Mac env?
Thanks for testing. I am not sure what is going on. Unfortunately currently I cannot test it on M1 without Rosetta 2. Since Rosetta 2 cannot be removed/disable easily. I will keep you posted.
I can confirm the issue. Finder seems to be somehow confused and thinks that VisualVM is Intel only application.
I can confirm the issue. Finder seems to be somehow confused and thinks that VisualVM is Intel only application.
Thank you for your continued attention to this issue. I have tested it on macOS 14.0, and the problem still persists.
I have the same issue on a Macbook Pro M2. Is there a workaround to start VisualVM without enabling Rosetta?
I have the same issue on a Macbook Pro M2. Is there a workaround to start VisualVM without enabling Rosetta?
Yes, there is workaround mentioned above - just run VisualVM from Terminal using:
/Applications/VisualVM.app/Contents/MacOS/visualvm
It worked, thank you!
I also encountered the same problem in 2.1.7. Is there a definite fix time?
It should be fixed in VisualVM 2.1.8.
I can confirm it now works, thank you 👍