visualvm command not found

In this troubleshooting guide we learn how to fix visualvm command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

visualvm: command not found

or when using sudo you get the following error message

sudo: visualvm: command not found

Solutions to visualvm: command not found

How To Fix visualvm: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu visualvm is provided by visualvm package.

visualvm is:

VisualVM is a visual tool integrating several commandline JDK tools and lightweight profiling capabilities. Designed for both production and development time use, it further enhances the capability of monitoring and performance analysis for the Java SE platform.

VisualVM is designed for

  • Application Developers: Monitor, profile, take thread dumps, browse heap dumps.
  • System Administrators: Monitor and control Java applications across the entire network.
  • Java Application Users: Create bug reports containing all the necessary information.

To fix this problem, we can install more using the command below.

sudo apt-get -y install visualvm

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install visualvm.

sudo apt -y install visualvm

Or if you have aptitude installed you can use the following command.

sudo aptitude install visualvm

Summary

In this tutorial we learn how to fix visualvm command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.