Tuesday, June 28, 2011

visualvm you are running visualvm using Java Runtime Environment (jre)

you double click on visualvm and you get this message - without an explanation of how to use a JDK instead.

After some research I find out that
contains a file
with an entry:

# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch

I replace it with


and it works....


Paulo Bravo said...

Thanks, I've just had the same problem, solved with your solution. :)

aditirustagitech said...

Thanks so much for this :) could not find this anywhere else

Larsen said...

You can also specify a JDK on the command line (see documentation):

visualvm.exe --jdkhome "C:\Programme\Java\jdk1.7.0_02"

For the Eclise plugin it is important to configure the correct path in the preferences (just search for "visualvm").