jclassinfo command not found

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

Introduction

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

jclassinfo: command not found

or when using sudo you get the following error message

sudo: jclassinfo: command not found

Solutions to jclassinfo: command not found

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

In Ubuntu jclassinfo is provided by jclassinfo package.

jclassinfo is:

jclassinfo reads Java class files and extract useful information from them, such as:

  • the classes/methods/constants/fields provided
  • their dependencies
  • the version of the virtual machine necessary to run them
  • a full disassembly of the bytecode
  • other attributes

Its main advantage over other similar programs is that it is written in C, which makes it much faster and more suitable for scripting.

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

sudo apt-get -y install jclassinfo

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

You can also use apt command to install jclassinfo.

sudo apt -y install jclassinfo

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

sudo aptitude install jclassinfo

Summary

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