Skip to content

Instantly share code, notes, and snippets.

@rantoniuk
Created August 18, 2015 10:13
Show Gist options
  • Save rantoniuk/a95e95fc07781e8b4d80 to your computer and use it in GitHub Desktop.
Save rantoniuk/a95e95fc07781e8b4d80 to your computer and use it in GitHub Desktop.
echo "Downloading JDK..."
curl -L -b "oraclelicense=a" http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-x64.tar.gz -O
echo "Downloading Tomcat..."
curl -L http://ftp.piotrkosoft.net/pub/mirrors/ftp.apache.org/tomcat/tomcat-8/v8.0.24/bin/apache-tomcat-8.0.24.tar.gz -O
tar zxf jdk-8u51-linux-x64.tar.gz
tar zxf apache-tomcat-8.0.24.tar.gz
PWD=$(pwd)
echo "JAVA_HOME=$PWD/jdk1.8.0_51" >> .bashrc
echo "PATH=$PATH:$JAVA_HOME/bin/" >> .bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment