Last active
April 3, 2024 18:59
-
-
Save arnoldc/36c2fbe8588f4f557f2852c47b38d7ae to your computer and use it in GitHub Desktop.
[Android] JDK Enviroment
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
// To list all installed JDK versions | |
/usr/libexec/java_home -V | |
// To set default JDK version | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.8` | |
// To set specific JDK version (if need specific) | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_131` | |
// To check the current JDK version | |
echo $JAVA_HOME | |
// To check the current JDK version (detailed) | |
java -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment