Created
April 15, 2021 19:45
-
-
Save jamesfalkner/35db8dfb678d7f045efe0ecfd64b02a6 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
curl -w '' -sL https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.10+9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.10_9.tar.gz | \ | |
( cd /usr/local; tar -xvzf - ) && \ | |
export JAVA_HOME="/usr/local/jdk-11.0.10+9" && \ | |
export PATH=$JAVA_HOME/bin:$PATH && \ | |
echo "export JAVA_HOME=$JAVA_HOME" >> ~/.bashrc && \ | |
echo "export PATH=$JAVA_HOME/bin:\$PATH" >> ~/.bashrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment