I tried the following steps:
In Eclipse under Window > Preferences > Run/Debug > Launching > VisualVM Configuration
.
Next to VisualVM Executable, I choose Browse. and select jvisualvm.exe
from C:\Program Files\Java\jdk1.6.0_32\bin
.
Now when I press Run I get an Error Starting VisualVM - You are running VisualVM using Java Runtime Environment (JRE).
Tried Editing 'C:\Program Files\Java\jdk1.6.0_32\lib\visualvm\etc\visualvm.conf' by replacing #jdkhome="/path/to/jdk" with #jdkhome=C:/Program Files/Java/jdk1.6.0_32 and I'm still getting the same error.
How can I fix this error?
Open "visualvm_directory/etc/visualvm.conf" file and set the JDK path in the "jdkhome" attribute
ex.: jdkhome=C:\Program Files\Java\jdk1.7.0_67