Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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]`
 
PREVIOUS NEXT
Tagged: #java #change #version #mac
ADD COMMENT
Topic
Name
6+9 =