To install the latest Eclipse Temurin: sdk install java, to install the preview of the SDK 18, e.g.
With SDKMan you can install multiple versions of the JDK from multiple providers (Oracle, Amazon Corretto, OpenJDK, Microsoft OpenJDK etc.). You can install the JDK on MacOS with the following tools: This part is optional but many developers asked for this information. Install / check the path of JRE and JDK on your Mac