jtdiff command not found

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

Introduction

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

jtdiff: command not found

or when using sudo you get the following error message

sudo: jtdiff: command not found

Solutions to jtdiff: command not found

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

In Ubuntu jtdiff is provided by jtreg package.

jtreg is:

jtreg is the test harness used by the OpenJDK test framework. This framework is intended primarily for regression tests. It can also be used for unit tests, functional tests, and even simple product tests – in other words, just about any type of test except a conformance test, which belong in a TCK.

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

sudo apt-get -y install jtreg

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

You can also use apt command to install jtreg.

sudo apt -y install jtreg

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

sudo aptitude install jtreg

Summary

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