The JDK is usually only needed if you are going to compile Java programs or if the software that will use Java specifically requires it. There is another default Java installation called the JDK (Java Development Kit).
Specifically, this command will install the Java Runtime Environment (JRE). Specifically, this will install OpenJDK 8, the latest and recommended version. The easiest option for installing Java is using the version packaged with Ubuntu. PrerequisitesĪ sudo non-root user, which you can set up by following the Ubuntu 16.04 initial server setup guide.
This article will guide you through the process of installing and managing different versions of Java using apt-get. Java and the JVM (Java’s virtual machine) are widely used and required for many kinds of software.