Skip to content

Instantly share code, notes, and snippets.

@bluebycode
Last active May 3, 2016 17:24
Show Gist options
  • Save bluebycode/500ddee540a0c8d7d9ad143d72e1d40d to your computer and use it in GitHub Desktop.
Save bluebycode/500ddee540a0c8d7d9ad143d72e1d40d to your computer and use it in GitHub Desktop.
Installing Java 1.8 JDK (Oracle) in Centos #jdk #jdk18 #centos
# Skipping the license
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/8u60-b27/jdk-8u60-linux-x64.rpm"
# Installing the RPM
sudo yum localinstall jdk-8u60-linux-x64.rpm
# Removing the trace
rm jdk-8u60-linux-x64.rpm
# Append JAVA_HOME under .bash_profile
# export JAVA_HOME=/usr/java/jre1.8.0_60
# PATH=$PATH:$JAVA_HOME/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment