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'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?
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
: