Install OpenJDK 11 headlessby entering the following: sudo yum install java-11-openjdk-headlessįor OpenJDK 8 headlessrun: sudo yum install java-1.8.0-openjdk-headless Install Oracle JDK on CentOS 8 It uses minimal system resources and doesn’t include keyboard or mouse support. The headless option is a minimal runtime environment, without a graphical interface, more suitable for server applications. Just like OpenJRE, Java headless is part of OpenJDK and should not be installed on top of it. Installing OpenJDK HeadlessĪnother alternative to OpenJDK is only installing the headlessversion. The Runtime Environment comes with the Java Development Kit by default.
Note: Remember – You don’t need to install OpenJRE if you already have OpenJDK.