Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save suyashcjoshi/99f263a122445ee413e51a977efc79df to your computer and use it in GitHub Desktop.
Save suyashcjoshi/99f263a122445ee413e51a977efc79df to your computer and use it in GitHub Desktop.
Simple way to manage several JDK, Graal VM versions on your Mac / Linux Machine and setting the default.
Create/Edit .bash_profile file on your computer and add/edit the following 4 lines of code:
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_11_HOME=$(/usr/libexec/java_home -v11)
export GRAAL_VM_HOME=<path to GraalVM>/Contents/Home/bin
export JAVA_HOME=$JAVA_11_HOME #default JDK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment