Created
December 4, 2014 23:18
-
-
Save lucasweb78/b5668ef0c21a45662c10 to your computer and use it in GitHub Desktop.
Install Oracle JDK 7 on AWS Linux
This file contains 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
#!/bin/bash | |
wget -c --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/7u71-b14/jdk-7u71-linux-x64.rpm" --output-document="jdk-7u71-linux-x64.rpm" | |
sudo rpm -i jdk-7u71-linux-x64.rpm | |
sudo alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000 | |
export JAVA_HOME=/usr/java/default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment