Install Java with SDKMan on MacOS or Linux

From Bonus Bits
Jump to: navigation, search

Purpose

This article gives the steps to install Java SDK with SDKMan on Mac OS or Linux.


Prerequisites

Install SDKMan on MacOS or Linux


Install Latest Java

  1. Run Install
    sdk install java
    
  2. Accept Oracle Licensing
  3. Enter User Password so SDKMan can make system environment changes


Install Specific Version of Java

  1. Run Install
    sdk install java <version>
    
  2. Accept Oracle Licensing
  3. Enter User Password so SDKMan can make system environment changes


Related Articles


Sources