-
-
Save khsthomas/c1066b4381996dca5f8e5fe99c19bd00 to your computer and use it in GitHub Desktop.
How to install openJDK 11 on macOS
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
| $ 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) |
Author
Author
List managed JDKs
$ jenv versions
system
oracle64-1.6.0.39
- oracle64-1.7.0.11 (set by /Users/hikage/.jenv/version)
Configure global version
$ jenv global oracle64-1.6.0.39
Configure local version (per directory)
$ jenv local oracle64-1.6.0.39
Configure shell instance version
$ jenv shell oracle64-1.6.0.39
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jenv add /Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
jenv global openjdk64-11