Last active
August 29, 2015 14:22
-
-
Save mortenbra/83025fe95686e9b6c57a to your computer and use it in GitHub Desktop.
Install Oracle Java JDK on CentOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install Oracle Java JDK | |
# see http://stackoverflow.com/questions/20901442/how-to-install-jdk-in-centos | |
# remove OpenJDK | |
yum remove java* | |
# assume .rpm file is already copied to /u01/download | |
cd /u01/download | |
rpm -ivh jdk-7u79-linux-x64.rpm | |
# see the java_env.sh script for how to add the Java environment to the bash profile | |
# check the java version installed | |
java -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment