javacc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
javacc: command not found
or when using sudo you get the following error message
sudo: javacc: command not found
Solutions to javacc: command not found
How To Fix javacc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu javacc is provided by javacc package.
javacc is:
Java Compiler-Compiler (JavaCC) is (according to sun) “the most popular parser generator” for use with Java [tm] applications.
A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar. In addition to the parser generator itself, JavaCC provides other standard capabilities related to parser generation such as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc.
To fix this problem, we can install more using the command below.
sudo apt-get -y install javacc
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install javacc.
sudo apt -y install javacc
Or if you have aptitude installed you can use the following command.
sudo aptitude install javacc
Summary
In this tutorial we learn how to fix javacc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.