Skip to content

Instantly share code, notes, and snippets.

@vuquangchien
Created November 13, 2014 03:04
Show Gist options
  • Save vuquangchien/010e6724d5d3fa28ff8c to your computer and use it in GitHub Desktop.
Save vuquangchien/010e6724d5d3fa28ff8c to your computer and use it in GitHub Desktop.
Install Java Oracle SDK
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.rpm
rpm -Uvh jdk-7u67-linux-x64.rpm
alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 200000
echo 'export JAVA_HOME="/usr/java/latest"' >> ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment