f2java command not found

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

Introduction

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

f2java: command not found

or when using sudo you get the following error message

sudo: f2java: command not found

Solutions to f2java: command not found

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

In Ubuntu f2java is provided by f2j package.

f2j is:

The package contains a Fortran to Java converter, also used to create the libf2j-java package. It converts Fortran file to Java source and class files.

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

sudo apt-get -y install f2j

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

You can also use apt command to install f2j.

sudo apt -y install f2j

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

sudo aptitude install f2j

Summary

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