Skip to content

Instantly share code, notes, and snippets.

@jenslohmann
Created February 27, 2020 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenslohmann/2bcb472b07e5d6cc4d2df51d4d511bd7 to your computer and use it in GitHub Desktop.
Save jenslohmann/2bcb472b07e5d6cc4d2df51d4d511bd7 to your computer and use it in GitHub Desktop.
Notes on installing GraalVM on MacOS for native-image generation
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