Created
March 19, 2014 20:39
-
-
Save hgomez/9650687 to your computer and use it in GitHub Desktop.
wget to download Java 8
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 characters
| wget --continue --no-check-certificate -O jdk-8-linux-x64.tar.gz --header Cookie: oraclelicense=a http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wget https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u462-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u462b08.tar.gz
mkdir /opt/java-1.8
tar -zxvf OpenJDK8U-jdk_x64_linux_hotspot_8u462b08.tar.gz -C /opt/java-1.8
alternatives --install /usr/bin/java java /opt/java-1.8/jdk8u462-b08/bin/java 1800
alternatives --install /usr/bin/javac javac /opt/java-1.8/jdk8u462-b08/bin/javac 1800
alternatives --set java /opt/java-1.8/jdk8u462-b08/bin/java
alternatives --set javac /opt/java-1.8/jdk8u462-b08/bin/javac