Control Center for Mac. Instantly access the controls you use most — like Wi-Fi and Bluetooth — and new controls to play music and enable Dark Mode for your display. Designed just for Mac, the new Control Center lets you add controls and drag favorites to the menu bar to customize it just for you. On Mac 10.12.3, we should /usr/libexec/javahome - v to show the most recent version of java – klion26 Jan 7 '19 at 3:49 1 Note that macOS Big Sur changed the behaviour of the javahome command. Download Apple Java for OS X 10.7/10.8 for Mac to patch Java SE 6 components. Java SE Development Kit 8 Downloads. Thank you for downloading this release of the Java™ Platform, Standard Edition Development Kit (JDK™). The JDK is a development environment for building applications, applets, and components using the Java programming language. Download and re-live the adventure. To install the Java Runtime Environment. Download file size: Windows - 23MB, Mac - 2.5MB.

This article shows you how to install Java on Mac OSX, and also how to do Java/JDK version switching.
Tested with
- Mac OS 10.15.3
- JDK 8, 9, 10, 11, 12, 13 (AdoptOpenJDK)

Note
On Mac OSX, Java should installed in this folder; it is Mac’s standard.

We will show you two ways to install Java JDK on Mac, via the popular Homebrew package manager and manually installation.
1. Homebrew
1.1 Install Homebrew and update it.
1.2 Add adoptopenjdk/openjdk.
1.3 Find all available JDK.
The output may vary.
1.4 Java 8, 9, 10, 11, 12, 13, choose one to install.
This example will install Java 8 and 11 for testing.
1.5 Where Java is installed? /usr/libexec/java_home -V
Homebrew will install the JDK at folder /Library/Java/JavaVirtualMachines/, and this folder is Mac’s standard folder for Java installs.
Java Mac Download Jdk
1.6 Test it, by default, Mac takes the highest version.
1.7 How to do version switching? Refer to below 3. version switching
2. Manual installation
The example shows you how to download the early access JDK 14 and install it on Mac OSX.
Steps
- Download JDK.
- Puts the JDK folder at
/Library/Java/JavaVirtualMachines. - Export
JAVA_HOME.
2.1 Download the early access JDK 14 from the OpenJDK website.
2.2 Extracts tar file to /Library/Java/JavaVirtualMachines
2.3 Export JAVA_HOME.
Find out where is JDK 14.
Create or edit the existing ~/.bash_profile with a text editor.
Java Download Latest Version

Export JAVA_HOME, save and exit.
Mac Download Java Jre
Reflect the changes
2.4 Test it.
3. Version Switching
In this tutorial, we installed the Java 8 and Java 11 via Homebrew (Step 1), and Java 14 manually (Step 2), so this Mac has three versions now. And the Mac is using the JDK 14.
Note
There are tools like jEnv to manage the Java version switching, but I prefer to manage with export JAVA_HOME manually, it’s simple and easy to understand, no black box magic.
3.1 Create or edit the existing ~/.bash_profile with a text editor like vim or nano, export JAVA_HOME to the specified JDK we want to use on Mac.
The above changes will make JAVA_HOME point to JAVA 8.
3.2 Reflect the changes.
Done.
If we want to switch JDK version again, update the ~/.bash_profile and export JAVA_HOME to other JDK version.