Last active
March 28, 2016 22:34
-
-
Save lucasweb78/324d277bafbdca1688ab to your computer and use it in GitHub Desktop.
Install Oracle JDK 8 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/8u77-b03/jdk-8u77-linux-x64.rpm" --output-document="jdk-8u77-linux-x64.rpm" | |
sudo rpm -i jdk-8u77-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