Where is the visualVM executable for linux?

34,241

Solution 1

Just installing the launcher doesn't actually install VisualVM. They are separate products.

Solution 2

You need to have the jdk installed.

On ubuntu, and probably other too the binary will be:

/usr/lib/jvm/java-8-oracle/bin/jvisualvm

You have to adapt the version of course

Solution 3

Three steps into terminal:

  1. sudo apt update
  2. sudo apt install visualvm
  3. `visualvm

After that, you need to accept the Oracle license:

enter image description here

The the result you will see:

enter image description here

Solution 4

NOTE: Currently, if the VisualVM path is missing, starting a run of your code with the VisualVM launcher will show:

An internal error occurred during: "Launching [main class]". java.lang.NullPointerException

To fix this, go to: Properties->Run/Debug->Launching->VisualVM Configuration and fill in the "VisualVM Executable" box with the correct path.

The executable path will be [path into folder where you extracted contents of your VisualVM download]\bin\visualvm.exe or .../bin/visualvm, depending on your OS (as Sha commented).

If you cannot find this path in your system, it's likely because you've only installed the VisualVM Launcher, but not the VisualVM itself (as M.Hampton mentioned).

You can get VisualVM from here: http://visualvm.java.net/download.html#first_steps (don't click the Eclipse IDE integration 'cause that's just gonna take you to the launcher again).

Solution 5

Try using the find command, like so, or similar.

sudo find / -exec grep "*visualvm*" {} \; -print

Also, look in /usr/bin, /usr/lib, and even ~/workspace/.metadata/.plugins.

I don't use Eclipse myself, but I have a distant memory from when I did.

Share:
34,241

Related videos on Youtube

user1068446
Author by

user1068446

ES6/React/Node.js/Docker/Kubernetes I like continuous integration and tight development feedback loops. Some real world problems I'm particularly interested in working with are traffic and congestion, logistics, climate change, behavioural economics, mental health and wellbeing. I also like pinball.

Updated on September 18, 2022

Comments

  • user1068446
    user1068446 over 1 year

    I'm trying to install the VisualVM plugin for eclipse, on my Ubuntu linux.

    I'm following the instructions here.

    So I've done the installation part, and the plugin is installed to eclipse.

    Now for the configation, I need to enter the path to the executable.

    Any idea of where this would be?

    I've looked at /bin/ there's no file named visualvm or anything similar. And there's just jar files in the extracted download.

    • Michael Hampton
      Michael Hampton over 11 years
      Where did you install VisualVM?
    • user1068446
      user1068446 over 11 years
      I used the eclipse 'install software' option and pointed it at the extracted folder.
  • Rafael
    Rafael over 9 years
    It would be interesting to have the real answer to the question ... where is the exec?
  • Sha
    Sha over 8 years
    visualvm\bin\visualvm.exe or visualvm/bin/visualvm depending on your operating system