

The above ls output indicates that you can install multiple versions of jre or jdk on the same machine, as each and every version of the installation will get its own directory name with the version number in it. 1 root root 16 Jun 1 16:55 default -> /usr/java/latestĭrwxr-xr-x.

Make sure that the jdk rpm is successfully installed.īy default, the above steps will install both jre and jdk under /usr/java directory as shown below.

Install the Java 8 JDK on your system as shown below. Here is the direct download link for JDK 8 Download.įor 64-bit linux, download the jdk-8u131-linux-圆4.rpm file, which is under “Linux 圆4”įor 32-bit linux, download the jdk-8u131-linux-i586.rpm file, which is under “Linux x86” Install Java 8 JDK Only Click on the “Download” link next to “JDK”. The latest version of Java 8 is available for download from here. If you are installing JDK, you typically don’t have to install JRE separately as all the binary files that are included with JRE is also included with JDK. Note: If you are new to Java, and like to learn how to write a simple basic hello world java program, this might help: How To Write and Execute Java Program on Unix OS Download Java 8 JDK Only Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_131-b11) In this example, as we see, this has installed the 1.8.0 version of java. Verify to make sure it is installed successfully. Install the downloaded jre rpm file as shown below. On this server, currently there is no java installed. The radio button will disappear and you’ll see this message: Thank you for accepting the Oracle Binary Code License Agreement for Java SE you may now download this software.įor 64-bit linux, download the jre-8u131-linux-圆4.rpm file, which is under “Linux 圆4”įor 32-bit linux, download the jre-8u131-linux-i586.rpm file, which is under “Linux x86” Install Java 8 JRE Only Click on the radio-button that says: “Accept License Agreement”.
