I'm trying to use VisualVM but I'm getting the following error:
You are running VisualVM using Java Runtime Environment (JRE)
I'm using SDKMAN! to manage my Java versions
What should I do to make VisualVM work?
I stumble upon your question while trying to point Spring Tool Suite to the JDK's JRE. sdkman installs the jdk & the JRE.
sdkman
The confusion is probably because there is no more a jre folder in the jdk as from Java 9 as per this explanation. The important line is:
jre
The JDK and JRE run-time images have been restructured as documented in JEP 220.
The solution for me was to modify SpringToolSuite4.ini:
SpringToolSuite4.ini
-vm /home/jumping_monkey/.sdkman/candidates/java/11.0.11.hs-adpt/bin
Copyright © 2021 Jogjafile Inc.
I stumble upon your question while trying to point Spring Tool Suite to the JDK's JRE.
sdkman
installs the jdk & the JRE.The confusion is probably because there is no more a
jre
folder in the jdk as from Java 9 as per this explanation. The important line is:The solution for me was to modify
SpringToolSuite4.ini
: