Java is a general purpose, high-level programming language developed by Sun Microsystems in 1995. Lots of application and websites that will not work unless you have Java installed. Java is fast, secure, and reliable.
It includes a useful tool for developing and testing programs written in the Java programming language and runs on the Java platform.
In this tutorial I will show how to install Java 8 on CentOS-6/7 machine.
Install Java 8
Follow the below steps to install java 8 on your CentOS-6/7 machine.
1. First of all, download the Oracle Java 8 rpm from its official website.
# wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.rpm"
2. Now install Oracle 8 after downloaded package.
# rpm -ivh jdk-8u45-linux-x64.rpm Preparing... ################################# [100%] Updating / installing... 1:jdk1.8.0_45-2000:1.8.0_45-fcs ################################# [100%] Unpacking JAR files... rt.jar... jsse.jar... charsets.jar... tools.jar... localedata.jar... jfxrt.jar... plugin.jar... javaws.jar... deploy.jar...
3. Verify the running Java version on your system.
# java -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.
Leave a Comment