texjava command not found

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

Introduction

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

texjava: command not found

or when using sudo you get the following error message

sudo: texjava: command not found

Solutions to texjava: command not found

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

In Ubuntu texjava is provided by tcode package.

tcode is:

Tcode is a precondition for libssj-java (SSJ) that creates a Java file from an associated LaTeX file. All SSJ code is written in LaTex format with special commands that allows Tcode to extract the Java code from the LaTex file. After which, Javadoc and LaTeX2HTML will create the HTML documentation. This guarantees that the source code and its documentation will never diverge.

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

sudo apt-get -y install tcode

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

You can also use apt command to install tcode.

sudo apt -y install tcode

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

sudo aptitude install tcode

Summary

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