Java command not found on Linux
You can add one of the Java path to PATH variable using the following command. You can add this line to .bashrc file in your home directory. Adding this to .bashrc will ensure everytime you open bash it will be PATH variable is updated.