Install JDK 11 on macOS

Raymond Tang Raymond Tang 0 11197 6.80 index 12/25/2020

JDK (Java Development Kit) is required for many big data frameworks such as Hadoop, Spark, Hive, etc. Follow these steps to install JDK SE 11 on macOS. The steps were tested on Big Sur.

  1. Go to JDK 11 download page: Java SE Development Kit 11- - Downloads (oracle.com).
  2. Download macOS Installer: jdk-11.0.9_osx-x64_bin.dmg
  3. Login with your Oracle account. You need to register one if you don't have one yet.
  4. Install the downloaded DMG file on your macOS. Double click JDK 11.0.9.pkg and then follow the wizard to complete setup. 2020122294612-截屏2020-12-22 下午8.45.45.png 2020122295232-Screen Shot 2020-12-22 at 8.51.57 pm.png

2020122295344-Screen Shot 2020-12-22 at 8.53.14 pm.png 5. Verify Java version. Once the installation is completed, you can verify Java version by running the following command:

```
$ java -versionjava version "11.0.9" 2020-10-20 LTSJava(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS)Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode)
```
  1. (Optional) Setup JAVA_HOME environment variable. Refer to Find JAVA_HOME JDK Location on macOS for more details.
java macos

Join the Discussion

View or add your thoughts below

Comments