Last active
August 29, 2015 14:16
-
-
Save filipelenfers/5f3b182cb059cd270c75 to your computer and use it in GitHub Desktop.
Install oracle jdk 7 on Centos 6
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
#Download | |
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/7u75-b13/jdk-7u75-linux-x64.rpm" | |
#Install | |
rpm -Uvh jdk-7u75-linux-x64.rpm | |
#if you already had the openjdk installed before, you need to add the alternatives to this version of java. | |
#Check | |
java -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment