Skip to content

Instantly share code, notes, and snippets.

@itnotes
Created December 26, 2015 16:09
Show Gist options
  • Save itnotes/ad3a835c70278f7645ed to your computer and use it in GitHub Desktop.
Save itnotes/ad3a835c70278f7645ed to your computer and use it in GitHub Desktop.

Revisions

  1. itnotes created this gist Dec 26, 2015.
    5 changes: 5 additions & 0 deletions install_java8.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    cd $OPENSHIFT_DATA_DIR
    wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jdk-8u65-linux-x64.tar.gz
    tar -zxf jdk-8u65-linux-x64.tar.gz
    export JAVA_HOME="$OPENSHIFT_DATA_DIR/jdk1.8.0_65"
    export PATH=$JAVA_HOME/bin:$PATH