Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Amazon Corretto 11 Installation Instructions for macOS 11 or later - Amazon Corretto 11

Amazon Corretto 11 Installation Instructions for macOS 11 or later

This topic describes how to install and uninstall Amazon Corretto 11 on a host running the Mac OS version 11 or later. You must have administrator permissions to install and uninstall Amazon Corretto 11.

Install Amazon Corretto 11

  1. Download the Mac .pkg file from the Downloads page.

  2. Double-click the downloaded file to begin the installation wizard and follow the steps in the wizard.

  3. Once the wizard completes, Amazon Corretto 11 is installed in /Library/Java/JavaVirtualMachines/.

    You can run the following command in a terminal to get the complete installation path.

    /usr/libexec/java_home --verbose
  4. Run the following command in the terminal to set the JAVA_HOME variable to the Amazon Corretto 11 version of the JDK. If this was set to another version previously, it is overridden.

    export JAVA_HOME=/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home

Uninstall Amazon Corretto 11

You can uninstall Amazon Corretto 11 by running the following commands in a terminal.

cd /Library/Java/JavaVirtualMachines/ sudo rm -rf amazon-corretto-11.jdk
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.