visualvm icon indicating copy to clipboard operation
visualvm copied to clipboard

Running VisualVM.app from Finder still needs Rosetta

Open fyeeme opened this issue 1 year ago • 14 comments

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:

  1. Go to 'application'
  2. Click on 'VisualVM.app'
  3. See error

Expected behavior VisualVm should works normal.

VisualVM log no log

Screenshots image

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]

fyeeme avatar May 03 '23 10:05 fyeeme

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 avatar May 03 '23 18:05 thurka

@thurka all of the version on my mac is arm64 version ,and default version is jdk 17 image

fyeeme avatar May 04 '23 01:05 fyeeme

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 avatar May 05 '23 08:05 thurka

@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.

image image image

fyeeme avatar May 05 '23 09:05 fyeeme

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.

thurka avatar May 05 '23 09:05 thurka

Can you see if removing --jdkhome option makes any difference?

bash -x /Applications/VisualVM.app/Contents/MacOS/visualvm

thurka avatar May 05 '23 09:05 thurka

@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? image

fyeeme avatar May 05 '23 09:05 fyeeme

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.

thurka avatar May 05 '23 11:05 thurka

I can confirm the issue. Finder seems to be somehow confused and thinks that VisualVM is Intel only application.

thurka avatar Nov 01 '23 10:11 thurka

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. image

fyeeme avatar Nov 01 '23 16:11 fyeeme

I have the same issue on a Macbook Pro M2. Is there a workaround to start VisualVM without enabling Rosetta?

cfecherolle avatar Nov 15 '23 16:11 cfecherolle

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

thurka avatar Nov 16 '23 07:11 thurka

It worked, thank you!

cfecherolle avatar Nov 16 '23 08:11 cfecherolle

I also encountered the same problem in 2.1.7. Is there a definite fix time?

Skyxim avatar Dec 01 '23 08:12 Skyxim

It should be fixed in VisualVM 2.1.8.

thurka avatar Mar 19 '24 15:03 thurka

I can confirm it now works, thank you 👍

cfecherolle avatar Mar 20 '24 13:03 cfecherolle