Closed somebush closed 3 days ago
You can specify JDK with --jdkhome
option.
To do so run visualvm from cmmand line:
visualvm.exe --jdkhome <path_to_jdk>
See visualvm.exe --help
for more info about command line arguments.
I tried but I get an error:
Cannot locate java installation in specified jdkhome:
c:\Java\jdk-21_windows-x64_bin
Do you want to try to use default version?
It looks like c:\Java\jdk-21_windows-x64_bin
does not contain JDK installation. What is the content of c:\Java\jdk-21_windows-x64_bin
directory?
I tried specifying the path in several different ways, but it didn't help.
folder c:\Soft\Games\jdk-21_windows-x64_bin\jdk-21.0.3\bin
api-ms-win-core-console-l1-1-0.dll
api-ms-win-core-console-l1-2-0.dll
api-ms-win-core-datetime-l1-1-0.dll
api-ms-win-core-debug-l1-1-0.dll
api-ms-win-core-errorhandling-l1-1-0.dll
api-ms-win-core-fibers-l1-1-0.dll
api-ms-win-core-file-l1-1-0.dll
api-ms-win-core-file-l1-2-0.dll
api-ms-win-core-file-l2-1-0.dll
api-ms-win-core-handle-l1-1-0.dll
api-ms-win-core-heap-l1-1-0.dll
api-ms-win-core-interlocked-l1-1-0.dll
api-ms-win-core-libraryloader-l1-1-0.dll
api-ms-win-core-localization-l1-2-0.dll
api-ms-win-core-memory-l1-1-0.dll
api-ms-win-core-namedpipe-l1-1-0.dll
api-ms-win-core-processenvironment-l1-1-0.dll
api-ms-win-core-processthreads-l1-1-0.dll
api-ms-win-core-processthreads-l1-1-1.dll
api-ms-win-core-profile-l1-1-0.dll
api-ms-win-core-rtlsupport-l1-1-0.dll
api-ms-win-core-string-l1-1-0.dll
api-ms-win-core-synch-l1-1-0.dll
api-ms-win-core-synch-l1-2-0.dll
api-ms-win-core-sysinfo-l1-1-0.dll
api-ms-win-core-timezone-l1-1-0.dll
api-ms-win-core-util-l1-1-0.dll
api-ms-win-crt-conio-l1-1-0.dll
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-multibyte-l1-1-0.dll
api-ms-win-crt-private-l1-1-0.dll
api-ms-win-crt-process-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
attach.dll
awt.dll
dt_shmem.dll
dt_socket.dll
extnet.dll
fontmanager.dll
freetype.dll
instrument.dll
j2gss.dll
j2pcsc.dll
j2pkcs11.dll
jaas.dll
jabswitch.exe
jaccessinspector.exe
jaccesswalker.exe
jar.exe
jarsigner.exe
java.dll
java.exe
javaaccessbridge.dll
javac.exe
javadoc.exe
javajpeg.dll
javap.exe
javaw.exe
jawt.dll
jcmd.exe
jconsole.exe
jdb.exe
jdeprscan.exe
jdeps.exe
jdwp.dll
jfr.exe
jhsdb.exe
jimage.dll
jimage.exe
jinfo.exe
jli.dll
jlink.exe
jmap.exe
jmod.exe
jpackage.dll
jpackage.exe
jps.exe
jrunscript.exe
jshell.exe
jsound.dll
jstack.exe
jstat.exe
jstatd.exe
jsvml.dll
jwebserver.exe
keytool.exe
kinit.exe
klist.exe
ktab.exe
lcms.dll
le.dll
management.dll
management_agent.dll
management_ext.dll
mlib_image.dll
msvcp140.dll
net.dll
nio.dll
prefs.dll
rmi.dll
rmiregistry.exe
saproc.dll
serialver.exe
<DIR> server
splashscreen.dll
sspi_bridge.dll
sunmscapi.dll
syslookup.dll
ucrtbase.dll
vcruntime140.dll
vcruntime140_1.dll
verify.dll
w2k_lsa_auth.dll
windowsaccessbridge-64.dll
zip.dll
As correctly stated by VisualVM c:\Java\jdk-21_windows-x64_bin
is not JDK home directory. Based on your response above, please use c:\Soft\Games\jdk-21_windows-x64_bin\jdk-21.0.3
as JDK home. So you will run visualvm using command below:
visualvm.exe --jdkhome c:\Soft\Games\jdk-21_windows-x64_bin\jdk-21.0.3
I realized my mistake - I used quotes for jdk path.
Describe the bug Windows 10. I get the error
You are running VisualVM using Java Runtime Environment (JRE)
when starting. However, on my disk there is a folderjava-1.8.0-openjdk-1.8.0.392-1
and I added it to the PATH variable.To Reproduce Run visualvm.exe Get this error
Expected behavior Program works
VisualVM log I have no log file
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): Windows 10 java-1.8.0-openjdk-1.8.0.392-1 visualvm_218