Created
September 23, 2014 13:33
-
-
Save fdimuccio/5f163b25d2ac6832e68d to your computer and use it in GitHub Desktop.
Revisions
-
fdimuccio created this gist
Sep 23, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/usr/bin/env bash ORACLE_JDK='http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.rpm' JDK_FILENAME=/home/ec2-user/jdk-linux-x64.rpm #if [ ! -f $JDK_FILENAME ] #then wget -O $JDK_FILENAME --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" $ORACLE_JDK rpm -Uvh $JDK_FILENAME alternatives --install /usr/bin/java java /usr/java/default/bin/java 3 alternatives --set java /usr/java/default/bin/java #fi