JDK Tutorials - Herong's Tutorial Examples - v6.32, by Herong Yang
Download and Install JDK 20 on macOS
This section describes how to download and install JDK 20 on a macOS computer.
JDK 20 is also called Java SE (Standard Edition) 20. Here is what I did to download and install JDK 20 on my macOS computer.
1. Go to Oracle Java SE download website at oracle.com/technetwork/java/javase/downloads.
2. Click "JDK 20 > macOS" tab.
3. Click on the "jdk-20_macos-x64_bin.dmg" link in the "x64 DMG Installer" line to download the installation file to your "Downloads" directory.
4. Double-click on the "jdk-20_macos-x64_bin.dmg" file to install it.
To test the installation, open a command window to try the java command.
herong$ java -version java version "20.0.1" 2023-04-18 Java(TM) SE Runtime Environment (build 20.0.1+9-29) Java HotSpot(TM) 64-Bit Server VM (build 20.0.1+9-29, mixed mode, sharing)
Cool, I have successfully installed JDK 20 on my macOS computer!
Table of Contents
►Download and Install JDK 20 on macOS
Download and Install JDK 17 on Windows
Adding JDK "bin" Directory to Path Setting
JDK Documentation Installation
Install JDK with "rpm" Command
Install JDK with "yum" Command
Date, Time and Calendar Classes
Date and Time Object and String Conversion
Number Object and Numeric String Conversion
Locales, Localization Methods and Resource Bundles
Calling and Importing Classes Defined in Unnamed Packages
HashSet, Vector, HashMap and Collection Classes
Character Set Encoding Classes and Methods
Encoding Conversion Programs for Encoded Text Files
Datagram Network Communication
DOM (Document Object Model) - API for XML Files
DTD (Document Type Definition) - XML Validation
XSD (XML Schema Definition) - XML Validation
XSL (Extensible Stylesheet Language)
Message Digest Algorithm Implementations in JDK
Private key and Public Key Pair Generation
PKCS#8/X.509 Private/Public Encoding Standards
Digital Signature Algorithm and Sample Program
"keytool" Commands and "keystore" Files
KeyStore and Certificate Classes
Secret Key Generation and Management
Cipher - Encryption and Decryption
The SSL (Secure Socket Layer) Protocol
SSL Socket Communication Testing Programs