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.
Bummer.

After some research I find out that
visualvm_132\visualvm_132\etc
contains a file
visualvm.conf
with an entry:

# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
#jdkhome="/path/to/jdk"

I replace it with

jdkhome=C:/Oracle4/Middleware/jdk160_21

and it works....

3 comments:

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

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

    ReplyDelete
  3. 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").

    ReplyDelete

comments where you are promoting your business will be marked as SPAM :o)