Skip to content

Instantly share code, notes, and snippets.

@wuriyanto48
Forked from douglarek/install-openjdk.txt
Created August 16, 2021 15:47
Show Gist options
  • Save wuriyanto48/d64cccbd1369cb186070595ed0dd94f5 to your computer and use it in GitHub Desktop.
Save wuriyanto48/d64cccbd1369cb186070595ed0dd94f5 to your computer and use it in GitHub Desktop.
How to install openJDK 11 on macOS
$ curl -C - https://download.java.net/java/ga/jdk11/openjdk-11_osx-x64_bin.tar.gz -O openjdk-11_osx-x64_bin.tar.gz
$ tar xf openjdk-11_osx-x64_bin.tar.gz
$ sudo mv jdk-11.jdk /Library/Java/JavaVirtualMachines/
$ java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment