

If this command indicates that Java is not found, then it’s not installed and you can proceed with the next steps. In the name of due diligence, first check to see if Java is already installed by issuing the following command: java - versionĬommand 'java' not found, but can be installed with: You don’t need to setup Java on Ubuntu if someone has already installed it for you. Set JAVA_HOME globally for all Ubuntu usersĭo you even need to setup Java on Ubuntu?.


There are many different ways to install Java on Ubuntu, but if all you need is the ability to run a Java program or even develop and compile some Java source code, the apt-based installation path is the easiest one to follow.
