• Operating System: CentOS 7 64-bit
  • Java: 8u202. For latest releases please read Oracle’s license update (may be stale)

Installing wget

Image for post

Using root or appropriate access,

yum install wget

This should install the pre-requisite for installing java

Downloading & Installing JAVA

Image for post

Navigate to Oracle’s SE DK 8 Downloads page on your local Windows machine

Image for post

Select the appropriate download file based on your requirement. I will be selecting Linux x64 RPM Package to download. You will have to accept the free Oracle license and/or create a free account to proceed

Image for post
While the link is downloading copy the url and in your CentOS machine:
wget <paste here>
Image for post
Now check & rename the file:
mv jdk
Image for post
Install Java 64 bit using:
rpm -ivh jdk-8u202.rpm
Image for post
java -version
which java

This completes the installation for Java 8u202 on a 64-bit CentOS 7