

This allows for a much smaller installation footprint, and is ideal for running Java applications in containers.

What separates standard from headless is the latter has had all of the graphical interface libraries removed, as they wouldn’t be needed to begin with. Headless, on the other hand, is specific to servers without a graphical desktop installed. The JDK has two separate packages that target different computer configurations.įor those running Ubuntu 18.04 with a desktop graphical interface, the standard installation will suite your needs. Thankfully, OpenJDK is now nearly identical to OracleJDK, due to efforts from Oracle and major contributors to the open source project.Īs a result of the changes to OpenJDK, it is now the preferred JDK to develop and run applications that will not need the enterprise support from Java. With the new license, a commercial license is required to any application on OracleJDK. Prior to Java 11, anyone could run Oracle JDK freely and it was the most popular choice as a result. With the release of Java 11, Oracle decided to make a major shift in their licensing.

Starting with this release of the SDK, this is the preferred one for anyone not running enterprise licenses. The default JDK (Java Development Kit) and JRE (Java Runtime Environment) for Ubuntu 18.04 is OpenJDK. In this tutorial, you will learn how to install Java SDK 11 on Ubuntu 18.04, with instructions covering both Oracle JDK and OpenJDK.
