You can download Oracle Java from the official website. To run the java application with the latest Java Runtime Environment, you should install OpenJDK 11 JRE by using the following command: $ sudo yum install java-11-openjdk Oracle Java Installationįirst, you should be aware of the Oracle Java Licence it is free only for non-commercial use of the software like development and personal use. If OpenJDK installed you will get the output like below image: You can verify java installation by checking the version of installed Java, as shown below: $ java –version If you only want to run a java application, you can install OpenJDK 8 JRE (Java Runtime Environment) by using the following command: $ sudo yum install java-1.8.0-openjdk $ sudo yum install java-1.8.0-openjdk-devel If your application required old version 8 of Java, you could install it by using below command. OpenJDK 8 is the most widely-used version of Java. Prerequisitesīefore continuing this tutorial, make sure you have RHEL 8 installed machine and a user to login into the system with sudo privileges. In this tutorial article, we will walk through the Java installation process on RHEL 8 machine. If you are a little bit confuse to choose between OpenJDK and Oracle Java, you can stick with default OpenJDK available on RHEL 8. The default Java flavor of Linux Operating System is OpenJDK. Java also has two different flavors, one is Open JDK, and another one is Oracle Java, both have the same functionalities and capabilities, the only difference is Oracle Java has some more commercial features. JDK includes both JRE and debugging tools and development libraries. When we need to run a Java-based application or java program, we need only Java Runtime Environment, but if you want to develop Java application, you need to Java Development Kit (JDK). The Java comes in two different packages, one is Java Runtime Environment (JRE), and another one is Java Development Kit (JDK).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |