cocoj command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cocoj: command not found
or when using sudo you get the following error message
sudo: cocoj: command not found
Solutions to cocoj: command not found
How To Fix cocoj: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cocoj is provided by coco-java package.
coco-java is:
Coco/R is a compiler generator, which takes an attributed grammar of a source language and generates a scanner and a parser for this language. The scanner works as a deterministic finite automaton. The parser uses recursive descent. LL(1) conflicts can be resolved by a multi-symbol lookahead or by semantic checks. Thus the class of accepted grammars is LL(k) for an arbitrary k.
To start Coco call cocoj, which is a shell script in /usr/bin.
To fix this problem, we can install more using the command below.
sudo apt-get -y install coco-java
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install coco-java.
sudo apt -y install coco-java
Or if you have aptitude installed you can use the following command.
sudo aptitude install coco-java
Summary
In this tutorial we learn how to fix cocoj command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.