I have several versions of Java installed on my Mac. Trouble is, I can never remember where any of them are. So switching Java versions using the
JAVA_HOME environment variable was always a pain. Then I discovered the handy
It shows the Java versions are available and where there are. For example, on my machine, the output looks like this.