We use JVM (Java Virtual Machine) for different tools in today’s technological world. Also, there are different versions of JVM released till now. JDK1.8.0 is the latest version of Java which is required by many software tools.
Requirements for JDK1.8
Both the JDK and JRE require a minimum a Pentium 2 266 MHz processor.
JDK1.8.0 runs on both 32bit and 64bit operating system with minimum of 128mb of RAM and free space of least 181 MB.
The installation Steps of JDK8 and JRE8 in both Ubuntu and CentOS starts here:
Prerequisites:
To install JDK1.8 using this steps you will need:
The following steps will guide you with JDK/JRE 8 installation in Ubuntu 16.04:
The best way to install is to use the version packed with Ubuntu. It will install OpenJDK 8, the latest version of JDK.
Start with updating package index:
Now install Java using the following command:
The JDK does contain the JRE, so there are no disadvantages if you install the JDK instead of the JRE, except for the larger file size.
This command will install JDK:
The below given Steps will guide you to install JDK/JRE 8 in Centos 6/7:
The first step is to change to your home directory:
Next Step is to download Oracle Java 8 JRE and RPM with below commands:
"http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jre-8u60-linux-x64.rpm"
"http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm"
Then after downloading, install the RPM with yum command:
The Java installation will be at location /usr/java/jdk1.8.0_60/jre/bin/java, and linked from /usr/bin/java.
After installing you can delete the archive file that you downloaded earlier:
To check Java installation, use the following command:
This way you can install JDK1.8 on Linux. You can ask your questions in the comment section. I would love to answer them.