![]() ![]() ![]() ![]() Java is distributed in three different editions, Standard Edition (SE), Enterprise Edition (EE), and Micro Edition (ME). This tutorial covers the Java SE (Standard Edition) edition. There are two different Java packages in CentOS 7, Java Runtime Environment (JRE), and the Java Development Kit (JDK). If you only want to run Java programs, then you can install JRE, which contains just the Java Runtime Environment. If you are a Java developer, then you will need JDK, which includes JRE and development/debugging tools and libraries. There are also two different implementations of Java, OpenJDK and Oracle Java, with almost no differences between them except that Oracle Java has a few additional commercial features. Prerequisites #īefore starting with the tutorial, make sure you are logged in as root or user with sudo privileges If you are not sure which Java implementation and version to install, the general recommendation is to install OpenJDK 11 JDK, which is the current LTS version of Java. OpenJDK, the open-source implementation of the Java Platform, is the default Java development and runtime in CentOS 7. ![]() The installation is simple and straightforward. The output will look something like this: openjdk version "11.0.3" LTS Verify the installation, by running the following command which will print the Java version: java -version You can install it using yum by typing the following command: sudo yum install java-11-openjdk-devel Install OpenJDK 11 JDK #Īt the time of writing, OpenJDK 11 is the current LTS version of Java and the recommended version to install. ![]()
0 Comments
Leave a Reply. |