Created
February 27, 2020 10:50
-
-
Save jenslohmann/2bcb472b07e5d6cc4d2df51d4d511bd7 to your computer and use it in GitHub Desktop.
Notes on installing GraalVM on MacOS for native-image generation
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
Download Community Ed. GraalVM from https://github.com/graalvm/graalvm-ce-builds/releases | |
Unpack. | |
# sudo mv graalvm-ce-19.0.0 /Library/Java/JavaVirtualMachines | |
sudo mv graalvm-ce-java11-20.0.0 /Library/Java/JavaVirtualMachines | |
Verify: /usr/libexec/java_home -V | |
vi ~/.zprofile | |
--- Add: --- | |
export JAVA_HOME=$(/usr/libexec/java_home -v 11) | |
export PATH=$PATH:$JAVA_HOME/bin:$HOME/bin | |
--- --- | |
Until GraalVM is notarized: | |
sudo xattr -d com.apple.quarantine /Library/Java/JavaVirtualMachines/graalvm-ce-java11-20.0.0 | |
gu install native-image |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment