Answers for "change java runtime version on mac"

2

java change version mac

/usr/libexec/java_home -V
# Matching Java Virtual Machines (2):
#    16.0.1, x86_64:     "Java SE 16.0.1"
#    11.0.11.1, x86_64:  "Amazon Corretto 11"
#    	 ^
#        |
#     VERSION
export JAVA_HOME=`/usr/libexec/java_home -v [VERSION]`
Posted by: Guest on July-05-2021
0

change default java version mac

nano ~/.zshrc

export JAVA_HOME=$(/usr/libexec/java_home -v 1.8.0)
Posted by: Guest on November-10-2020

Code answers related to "change java runtime version on mac"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language