Mac OS
First of all, let’s check the java version in your local system via the below command.
1 | > java -version |
the below command will able to check the list of installed JDK in OSX system.
1 | > /usr/libexec/java_home -V |
if you want to change the JDK version among them. You just use ‘export’ command. like the below.
1 | > export JAVA_HOME=$(/usr/libexec/java_home -v 11) |