Install Oracle JDK in CentOS 7
Install Oracle JDK in CentOS 7 and check whether JDK is provided in Linux. If openJDK is available, uninstall it.
Java-version
Rpm-qa | grep-E '^ open [jre | jdk] | j [re | dk]'
Uninstall openjdk
Su root
Yum-y remove java java-1.7.0-openjdk
Download oracle jdk
Wget -- no-cookies -- header "Cookie: Maid = accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/8u77-b03/jdk-8u77-linux-x64.tar.gz
Decompress jdk
Tar-xzvf jdk-8u77-linux-x64.tar.gz
Move jdk to/usr/local to establish a soft connection
Mv jdk1.8.0 _ 77 // usr/local
Ln-s/usr/local/jdk1.8.0 _ 77 // usr/local/jdk
Edit/etc/profile
Vim/etc/profile
Add jdk Configuration
JAVA_HOME =/usr/local/jdk
PATH =$ {PATH }:$ {JAVA_HOME}/bin
Export JAVA_HOME PATH
Source
Source/etc/profile
Check whether jdk is successfully installed.
Java-version
Install JDK 1.8.0 _ 25 on Ubuntu 14.04 and configure Environment Variables
Build a JDK environment using CentOS
Install JDK 1.8.0 _ 25 on Ubuntu 14.04 and configure Environment Variables
Install Oracle JDK 14.04 on Ubuntu 1.8 LTS
CentOS6.3 install JDK and environment Configuration
Install JDK 8 on Ubuntu 14.04
Install JDK graph analysis in Ubuntu
This article permanently updates the link address: