japi-compliance-checker command not found

In this troubleshooting guide we learn how to fix japi-compliance-checker command not found error message

Introduction

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

japi-compliance-checker: command not found

or when using sudo you get the following error message

sudo: japi-compliance-checker: command not found

Solutions to japi-compliance-checker: command not found

How To Fix japi-compliance-checker: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu japi-compliance-checker is provided by japi-compliance-checker package.

japi-compliance-checker is:

Java API Compliance Checker (Java ACC) is a tool for checking backward binary and source-level compatibility of a Java library API. The tool checks classes declarations of old and new versions and analyzes changes that may break compatibility: removed methods, removed class fields, added abstract methods, etc. Binary incompatibility may result in crashing or incorrect behavior of existing clients built with an old version of a library when they are running with a new one. Source incompatibility may result in recompilation errors with a new library version. The tool is intended for library developers and operating system maintainers who are interested in ensuring backward compatibility, i.e. allow old clients to run or to be recompiled with newer library versions.

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

sudo apt-get -y install japi-compliance-checker

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

You can also use apt command to install japi-compliance-checker.

sudo apt -y install japi-compliance-checker

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

sudo aptitude install japi-compliance-checker

Summary

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