Closed
Description
Describe the bug
When trying to launch VisualVM on Windows I get the error message "Cannot locate java installation in specified jdkhome"
To Reproduce
- Install Eclipse Adoptium jdk-8.0.362.9. No other JDK or JRE installed.
- Add C:\Program Files (x86)\Eclipse Adoptium\jdk-8.0.362.9-hotspot\bin to PATH. Set JAVA_HOME to C:\Program Files (x86)\Eclipse Adoptium\jdk-8.0.362.9-hotspot\
- VisualVM is unzipped in C:\visualvm_218
- Tried to run VisualVM by just double clicking visualvm.exe in C:\visualvm_218\bin -> Error: Cannot find Java 1.8 or higher.
- Tried to launch from command line as
visualvm.exe --jdkhome %JAVA_HOME%
Error: Cannot locate java installation in specified jdkhome C:\Program - Tried to launch from command line as
visualvm.exe --jdkhome "%JAVA_HOME%"
Error: Cannot locate java installation in specified jdkhome C:\Program Files (x86)\Eclipse Adoptium\jdk-8.0.362.9-hotspot - Similar result for
visualvm.exe --jdkhome "%JAVA_HOME%"bin
- Tried changing backslashes for slashes (read somewhere)
visualvm.exe -jdkhome "C:/Program Files (x86)/Eclipse Adoptium/jdk-8.0.362.9-hotspot"
Error: Cannot find Java 1.8 or higher. - Tried to launch from command line as
visualvm.exe --jdkhome "%JAVA_HOME%jre"
Error: You are running VisualVM using Java Runtime Environment - All the previous with or without specifiying --userdir
Expected behavior
VisualVM runs.
Desktop (please complete the following information):
- OS: Microsoft Windows Server 2019 Datacenter
- JDK version [OpenJDK 1.8.0_362]
- VisualVM version [e.g. 2.1.8]