Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jvisualvm can not locate Java installation

I am facing following issues while running jvisualvm -

Java Related environment variables set on machine

java related environment variables

Following are PATH variable details, there is no path mentioned as C:\apps\Java8

Path=C:\ProgramData\Oracle\Java\javapath;
C:\windows\system32;
C:\windows;
C:\windows\System32\Wbem;
C:\windows\System32\WindowsPowerShell\v1.0\;
C:\windows\System32\OpenSSH\;
C:\Program Files\Microsoft\Web Platform Installer\;
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;
C:\Program Files\Microsoft DNX\Dnvm\;
C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;
D:\apps\gradle-5.5.1-bin\bin;
D:\apps\apache-ant-1.10.5\bin;
C:\apps\Java\Java8\bin;
C:\Program Files\nodejs\;

When I am running jvisualvm.exe, I am getting following error, from the error it seems that jvisualvm is looking into some config file to locate JDK home path:

enter image description here

On this message I click "Yes" button then getting following error which says, you are running VisualVM is running from JRE -

enter image description here

like image 897
Ganesh C Avatar asked Jan 20 '26 07:01

Ganesh C


2 Answers

Try updating JDK path in visualvm.conf in the etc folder.

enter image description here

like image 62
Tarun Chopra Avatar answered Jan 23 '26 20:01

Tarun Chopra


As explain here and by Tarun Chopra.

You have 2 options:

  1. Launch bin/visualvm.exe at the command line with the --jdkhome parameter and your JDK location
  2. Update the visualvm_jdkhome variable in the file etc/visualvm.conf of your VisualVM directory.
like image 44
Nicolas Dupouy Avatar answered Jan 23 '26 19:01

Nicolas Dupouy