To learn what Java versions I have installed on my Mac computer I will type the following in the terminal window: /usr/libexec/java_home -V If you have more than one Java version installed on your computer and you need to switch to using a different version, you can do so by adding the -v flag. This will print out the current Java version installed on your Mac computer.
#How to install maven on mac0s how to#
In this tutorial, I am going to share with you how to set the JAVA_HOME environment variable on a new MAC.