javax2jakarta command not found

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

Introduction

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

javax2jakarta: command not found

or when using sudo you get the following error message

sudo: javax2jakarta: command not found

Solutions to javax2jakarta: command not found

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

In Ubuntu javax2jakarta is provided by tomcat-jakartaee-migration package.

tomcat-jakartaee-migration is:

The aim of the Apache Tomcat migration tool for Jakarta EE is to take a web application written for Java EE 8 that runs on Apache Tomcat 9 and convert it automatically so it runs on Apache Tomcat 10 which implements Jakarta EE 9.

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

sudo apt-get -y install tomcat-jakartaee-migration

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

You can also use apt command to install tomcat-jakartaee-migration.

sudo apt -y install tomcat-jakartaee-migration

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

sudo aptitude install tomcat-jakartaee-migration

Summary

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