Last active
November 20, 2019 20:46
-
-
Save suyashcjoshi/99f263a122445ee413e51a977efc79df to your computer and use it in GitHub Desktop.
This file contains 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
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