Created
October 12, 2016 16:39
-
-
Save zduymz/91365a9f3293adaf21972d375a67ae14 to your computer and use it in GitHub Desktop.
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
wget --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/7u79-b15/jdk-7u79-linux-x64.tar.gz" | |
tar xvfz jdk-7u79-linux-x64.tar.gz | |
alternatives --install /usr/bin/java java /opt/jdk1.7.0_79/bin/java 2 | |
alternatives --install /usr/bin/jar jar /opt/jdk1.7.0_79/bin/jar 2 | |
alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_79/bin/javac 2 | |
alternatives --set jar /opt/jdk1.7.0_79/bin/jar | |
alternatives --set javac /opt/jdk1.7.0_79/bin/javac | |
alternatives --config java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment