Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save programmerShinobi/e21570d6696fe87768aaa0f34208473a to your computer and use it in GitHub Desktop.

Select an option

Save programmerShinobi/e21570d6696fe87768aaa0f34208473a to your computer and use it in GitHub Desktop.
VisualVM 2.2.1 Installation Guide on Elementary OS 8 (Ubuntu 24.04 LTS)

VisualVM 2.2.1 Installation Guide on Elementary OS 8 (Ubuntu 24.04 LTS)

Step 1: Extract VisualVM ZIP

Move the visualvm_221.zip file to /opt (a standard directory for third-party applications) and extract it:

$ sudo mkdir -p /opt/visualvm
$ sudo unzip visualvm_221.zip -d /opt/visualvm

The folder will be located at /opt/visualvm/visualvm_221.


Step 4: Set Executable Permission

Go to the bin folder and make the visualvm file executable:

$ cd /opt/visualvm/visualvm_221/bin
$ sudo chmod +x visualvm

Step 5: Run VisualVM

Run VisualVM directly from the bin folder:

$ ./visualvm

If successful, the VisualVM GUI should appear.


Step 6: Make VisualVM Accessible from Anywhere

To run VisualVM from any terminal location, create a symlink:

$ sudo ln -s /opt/visualvm/visualvm_221/bin/visualvm /usr/local/bin/visualvm

Now you can simply run:

$ visualvm

from anywhere.


Step 7: (Optional) Create Desktop Launcher

Create a .desktop file so VisualVM appears in the application menu:

$ nano ~/.local/share/applications/visualvm.desktop

Add the following content:

[Desktop Entry]
Version=1.0
Type=Application
Name=VisualVM
Exec=/opt/visualvm/visualvm_221/bin/visualvm
Icon=/opt/visualvm/visualvm_221/etc/visualvm.icns
Terminal=false
Categories=Development;IDE;

Save the file and make it executable:

$ chmod +x ~/.local/share/applications/visualvm.desktop

VisualVM will now appear in your Elementary OS application menu.


Step 8: Verify Installation

Run VisualVM from the terminal or the menu to ensure it works:

$ visualvm

If the GUI launches without errors, the installation is complete.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment