Skip to content

visualvm not starting on JDK 24 #633

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

Closed
abique opened this issue Mar 28, 2025 · 1 comment
Closed

visualvm not starting on JDK 24 #633

abique opened this issue Mar 28, 2025 · 1 comment

Comments

@abique
Copy link

abique commented Mar 28, 2025

Hi,

visualvm isn't starting on my macOS computer.

abique@Alexandres-MacBook-Pro ~> cd /Applications/VisualVM.app/Contents/MacOS/
abique@Alexandres-MacBook-Pro /A/V/C/MacOS> ./visualvm 
WARNING: package com.sun.java.swing.plaf.gtk not in java.desktop
WARNING: package sun.awt.X11 not in java.desktop
Error occurred during initialization of VM
java.lang.Error: A command line option has attempted to allow or enable the Security Manager. Enabling a Security Manager is not supported.
	at java.lang.System.initPhase3(java.base@24/System.java:1947)

abique@Alexandres-MacBook-Pro /A/V/C/MacOS [1]> 

I get the same error if I download visualvm from your website or install it via brew.
I've tested it with oracle-jdk 23, 21, and 17.

System info: macOS Sequoia 15.3.2

abique@Alexandres-MacBook-Pro /A/V/C/MacOS [1]> uname -a
Darwin Alexandres-MacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64

EDIT:
I've managed to run it using:
./visualvm --jdkhome /Library/Java/JavaVirtualMachines/default/Contents/Home/

Thanks,
Alex

@thurka
Copy link
Member

thurka commented Mar 28, 2025

This is caused by running VisualVM on JDK 24.

@thurka thurka closed this as completed Mar 28, 2025
@thurka thurka changed the title visualvm not starting on macOS visualvm not starting on JDK 24 Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants