jlex command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
jlex: command not found
or when using sudo you get the following error message
sudo: jlex: command not found
Solutions to jlex: command not found
How To Fix jlex: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu jlex is provided by jlex package.
jlex is:
The JLex utility is a lexical analyser generator, modelled after the popular UNIX “lex” utility.
JLex takes a specification file similar to that accepted by Lex, then creates a Java source file for the corresponding lexical analyzer.
To fix this problem, we can install more using the command below.
sudo apt-get -y install jlex
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install jlex.
sudo apt -y install jlex
Or if you have aptitude installed you can use the following command.
sudo aptitude install jlex
Summary
In this tutorial we learn how to fix jlex command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.