How to install Amazon Corretto on Windows 11 or 10

Download the Amazon Corretto .msi from AWS, run the wizard, set JAVA_HOME and PATH, then run java -version to confirm the install on Windows 11 or 10.

This guide covers the MSI and winget routes, choosing between Corretto 8, 11, 17, 21 and 25, setting the default Java version, updating, and uninstalling.

How to install Amazon Corretto on Windows 11 or 10
AWS shows this java -version output for Corretto 21, and your own build number may differ after the install. (Image: docs.aws.amazon.com)

How to install Amazon Corretto in Windows

These steps use Corretto 21. Other versions follow the same process, and Corretto 8 adds one prerequisite covered further down.

  1. Open the Corretto 21 downloads page and download the Windows x64 JDK .msi file.
  2. Double-click the .msi file to start the installation wizard.
  3. Follow the wizard. Keep the default folder, C:\Program Files\Amazon Corretto\, unless you need a custom path.
  4. Set JAVA_HOME to the new version folder, such as C:\Program Files\Amazon Corretto\jdk21.0.13_0.
  5. Add %JAVA_HOME%\bin to your PATH variable.
  6. Open a new Command Prompt and run java -version. The output names Corretto and the version you installed.

The AWS instructions treat JAVA_HOME and PATH as a separate step after the wizard, so run through them even if the install finishes without errors.

What is Amazon Corretto?

Amazon Corretto is Amazon's build of the Open Java Development Kit, with long-term support and extra patches for performance, stability and security.

Question Answer
Cost Free to use and distribute, under GPLv2 with the Class Path Exception
Java SE compatibility Certified against the Java Technology Compatibility Kit (TCK)
Replacing another JDK Works as a drop-in replacement for Java SE applications that do not rely on features missing from OpenJDK
Update schedule Planned quarterly, with urgent fixes released outside that cycle

Amazon Corretto 8, 11, 17, 21 or 25 for Windows: versions and support dates

Install the version your application asks for. If nothing specifies one, pick the newest long-term support release.

Version Release type Support ends Windows support Choose it when
Corretto 25 Long-term support October 2032 Windows 10 or later You are starting a new project
Corretto 21 Long-term support October 2030 Windows 10 or later Your app or framework targets Java 21
Corretto 17 Long-term support October 2029 Windows 10 or later Your app or framework targets Java 17
Corretto 11 Long-term support January 2032 Windows 10 or later An existing app requires Java 11
Corretto 8 Long-term support December 2030 Windows 10 or later An older app requires Java 8
Corretto 27 Feature release April 2027 Windows 11 or later You want the newest Java features and can move again soon

Corretto 26 reached its end of support in October 2026, so do not choose it for a new install.

Download Amazon Corretto for Windows

AWS keeps permanent URLs that always point to the most recent release, which helps when you script an install. Each version also has its own downloads page in the Corretto documentation.

Package Permanent URL
Corretto 21 x64 JDK, MSI installer https://corretto.aws/downloads/latest/amazon-corretto-21-x64-windows-jdk.msi
Corretto 21 x64 JDK, ZIP archive https://corretto.aws/downloads/latest/amazon-corretto-21-x64-windows-jdk.zip
Corretto 8 x64 JDK, MSI installer https://corretto.aws/downloads/latest/amazon-corretto-8-x64-windows-jdk.msi
Corretto 8 x86 JDK, MSI installer https://corretto.aws/downloads/latest/amazon-corretto-8-x86-windows-jdk.msi
Corretto 8 x64 JRE, MSI installer https://corretto.aws/downloads/latest/amazon-corretto-8-x64-windows-jre.msi

The URLs follow one pattern: version number, CPU architecture, windows, package type and file extension. Replace 21 with 11, 17 or 25 to reach those releases.

The Corretto 21 downloads page lists Windows x64 packages only, so it has no Windows Arm64 installer. Each package also has MD5 and SHA256 checksum links if you want to confirm the file before running it.

Download Amazon Corretto for Windows x64 JDK as MSI or ZIP
Choose the .msi link for the setup wizard or the .zip archive; these permanent URLs always point to the newest release. (Image: docs.aws.amazon.com)

Installing Corretto on Windows 11 or 10

WinGet is a command-line way to install apps on Windows. It comes with App Installer on Windows 11 and modern versions of Windows 10, and it needs Windows 10 version 1809 or later.

The commands below work in Command Prompt, Windows PowerShell or PowerShell 7.

  1. Right-click Start and open Terminal or Windows PowerShell.
  2. Run winget --version to confirm winget is available. A version number means it is ready.
  3. Run winget search Corretto to list the packages your winget sources offer.
  4. Copy the value in the Id column for the Corretto version you want. Accept the source agreement if winget asks.
  5. Run winget install --id <Id> -e --source winget, replacing <Id> with the value you copied.
  6. Approve the User Account Control prompt if Windows shows one. If you decline it, the install fails.
  7. Open a new terminal and run java -version to see the installed release.

If the search returns no Corretto package, use the MSI route at the top of this page. The -e switch makes winget match the ID exactly, so it cannot pick a similarly named package.

Install Corretto with winget: search results table listing package Id values
This example searches for vscode; run winget search Corretto and copy your version's value from the Id column. (Image: Microsoft)

How to set JAVA_HOME for Amazon Corretto on Windows

JAVA_HOME must point at the version folder inside Amazon Corretto, not at the parent folder. Open File Explorer at C:\Program Files\Amazon Corretto\ to read the exact folder name.

  1. Open Control Panel and select System.
  2. Select Advanced system settings, then go to the Advanced tab.
  3. Select Environment Variables.
  4. Under System variables, add a variable named JAVA_HOME with the version folder as its value, such as C:\Program Files\Amazon Corretto\jdk21.0.13_0.
  5. Edit the Path variable and add a new entry containing %JAVA_HOME%\bin.
  6. Save each dialog, then open a new Command Prompt so it picks up the changes.

Terminal windows that were already open keep their old values, which is why a new one is needed.

Set JAVA_HOME for Amazon Corretto under System variables with Path selected
Add the new variable in this list, then edit the Path row and add %JAVA_HOME%\bin as a new entry. (Image: Microsoft Q&A)

Set JAVA_HOME for Amazon Corretto from PowerShell

[Environment]::SetEnvironmentVariable('JAVA_HOME', 'C:\Program Files\Amazon Corretto\jdk21.0.13_0', 'Machine')

Run this in PowerShell as administrator, because the Machine scope needs that permission. It saves JAVA_HOME for every user and survives a restart. Replace the folder with the one on your PC.

You should see: No output. Open a new PowerShell window and run $Env:JAVA_HOME to print the folder.

Install Amazon Corretto silently with msiexec

Windows Installer can run the Corretto MSI without any dialogs, which suits scripted setups on several PCs.

msiexec.exe /i "C:\Installers\amazon-corretto-21-x64-windows-jdk.msi" /qn /norestart

Run it from an administrator Command Prompt and replace the path with your downloaded file. /i installs the package, /qn shows no interface, and /norestart stops the PC from restarting afterwards. Add /L*V "C:\Installers\corretto.log" to write a verbose log.

You should see: The prompt returns with no message. Set JAVA_HOME and PATH, then run java -version in a new window.

Amazon Corretto 8 install on Windows

Corretto 8 is the only long-term support release with one extra requirement: the Visual C++ Redistributable Package for Visual Studio 2013 or newer. Its downloads page also offers x86 builds and a separate JRE.

  1. Install the Visual C++ Redistributable for Visual Studio 2013 if the PC does not already have it or a newer version.
  2. Open the Corretto 8 downloads page and choose Windows x64 or Windows x86.
  3. Download the JDK .msi to build Java applications, or the JRE .msi if you only need to run them.
  4. Double-click the file and follow the wizard.
  5. Set JAVA_HOME to the version folder, such as C:\Program Files\Amazon Corretto\jdk1.8.0_512, and add %JAVA_HOME%\bin to PATH.
  6. Run java -version in a new Command Prompt. The first line reads openjdk version "1.8.0_512" or a later build.
Amazon Corretto 8 download for Windows x86 JDK and JRE MSI links
Corretto 8 also offers x86 builds and a separate JRE; choose the .msi link to use the installation wizard. (Image: docs.aws.amazon.com)

How to check Amazon Corretto version on Windows

java -version

Run this in a new Command Prompt. To see which java.exe Windows is using, run where java. The first path listed is the one that runs.

You should see: openjdk version "21.0.13" 2026-10-20 LTS, followed by lines that include OpenJDK Runtime Environment Corretto-21.0.13.0.11. Your numbers change with each update, but the word Corretto should always appear.

Where does Amazon Corretto install on Windows and macOS?

Each release gets a folder named after its exact version, so the folder name changes when you update.

Install Default location Example version folder
Corretto 25 on Windows C:\Program Files\Amazon Corretto\ jdk25.0.5_0
Corretto 21 on Windows C:\Program Files\Amazon Corretto\ jdk21.0.13_0
Corretto 17 on Windows C:\Program Files\Amazon Corretto\ jdk17.0.21_0
Corretto 11 on Windows C:\Program Files\Amazon Corretto\ jdk11.0.33_0
Corretto 8 on Windows C:\Program Files\Amazon Corretto\ jdk1.8.0_512
Corretto 21 on macOS /Library/Java/JavaVirtualMachines/ amazon-corretto-21.jdk

How to set the default Java version on Windows with Corretto

Windows runs the first java.exe it finds in Path, so the order of those entries decides your default when several JDKs are installed.

  1. Run where java to list every Java on the Path, in the order Windows finds them.
  2. Open Environment Variables from Advanced system settings.
  3. Change JAVA_HOME to the Corretto version folder you want as the default.
  4. Edit Path and move %JAVA_HOME%\bin above any other Java entry.
  5. Save the dialogs and open a new Command Prompt.
  6. Run java -version and check that it reports the version you chose.

How to update Amazon Corretto on Windows

Amazon plans Corretto updates quarterly. If the PC also runs Oracle's build, update Oracle Java on Windows 11 as a separate job, because the two are different products.

  1. Run java -version and note the current release.
  2. If you installed with winget, run winget upgrade to see whether a newer Corretto package is available, then run winget upgrade --id <Id> -e.
  3. If you installed from the MSI, download the current .msi from the downloads page for your version and run it.
  4. Open C:\Program Files\Amazon Corretto\ and read the name of the new version folder.
  5. Change JAVA_HOME to that new folder, because the old path contains the previous version number.
  6. Open a new Command Prompt and run java -version to confirm the update.

If an older Corretto entry remains in Programs and Features and nothing depends on it, uninstall it so it cannot be picked up by mistake.

How to use Amazon Corretto

Corretto behaves like any other JDK, so existing command-line options and tools keep working. This short test proves that both the compiler and the runtime work.

  1. Create a file named Hello.java in an empty folder.
  2. Add this code and save it: public class Hello { public static void main(String[] args) { System.out.println("Corretto works"); } }
  3. Open Command Prompt in that folder and run javac Hello.java.
  4. Run java Hello. The window prints Corretto works.
  5. To use Corretto in IntelliJ IDEA, go to File > Project Structure > Project Settings > Project.
  6. In the SDK list, choose Add JDK from disk and select the Corretto version folder, then apply the change.

How to uninstall Amazon Corretto on Windows

  1. Open Control Panel and select Programs and Features.
  2. Search for Amazon Corretto and select the version you want to remove, such as Amazon Corretto 21.
  3. Choose Uninstall and confirm.
  4. If you prefer winget, run winget uninstall --id <Id> -e --source winget instead of the three steps above.
  5. Delete the JAVA_HOME variable and the %JAVA_HOME%\bin entry in Path, or point them at another JDK.
  6. Open a new Command Prompt and run java -version to confirm the version is gone.

Fix java is not recognized after installing Amazon Corretto

'java' is not recognized as a command

Path does not include the Corretto bin folder, or the terminal was open before you changed it.

  1. Close every terminal window and open a new Command Prompt.
  2. Run echo %JAVA_HOME% and check that the folder exists in File Explorer.
  3. Correct JAVA_HOME if the version number in the path is out of date.
  4. Confirm that Path contains %JAVA_HOME%\bin, then run java -version again.

java -version shows a different Java instead of Corretto

Another JDK appears earlier in Path.

  1. Run where java and read the first result.
  2. Edit Path and move %JAVA_HOME%\bin above that entry.
  3. Open a new Command Prompt and run java -version again.

winget is not recognized on Windows 10 or 11

App Installer is missing or winget has not registered for your user account yet, which can happen just after a first sign-in.

  1. Open PowerShell and run Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.
  2. Open a new terminal and run winget --version.
  3. If the command still fails, install App Installer from the Microsoft Store and try again.
  4. Use the Corretto MSI instead if winget stays unavailable, because the MSI does not depend on it.

Amazon Corretto on Windows FAQ

How to install Amazon Corretto in Windows?

Download the Windows x64 JDK .msi from the AWS downloads page, double-click it and follow the wizard. Then set JAVA_HOME to the version folder, add %JAVA_HOME%\bin to PATH, and run java -version in a new Command Prompt to confirm it.

How to install Amazon Corretto 11?

Use the same MSI process as other versions, starting from the Corretto 11 downloads page. The default location is C:\Program Files\Amazon Corretto\, and JAVA_HOME should point at the version folder inside it, such as jdk11.0.33_0. AWS lists support for Corretto 11 until January 2032.

How do you install Amazon Corretto 17?

Download the Corretto 17 Windows .msi, run the wizard, then set JAVA_HOME to the version folder, such as C:\Program Files\Amazon Corretto\jdk17.0.21_0. Add %JAVA_HOME%\bin to PATH. Corretto 17 runs on Windows 10 or later and is supported until October 2029.

How do you install Amazon Corretto 21?

Download amazon-corretto-21-x64-windows-jdk.msi from the AWS permanent URL, run it, and set JAVA_HOME to the version folder, such as jdk21.0.13_0. Add %JAVA_HOME%\bin to PATH. Running java -version should then report Corretto 21 in a new Command Prompt window.

Where can you download Amazon Corretto for Windows?

Use the downloads page in the Corretto documentation on docs.aws.amazon.com, or the permanent URLs at corretto.aws, which always point to the newest release. Avoid third-party download sites, because AWS publishes MD5 and SHA256 checksums for each official package.

How to update Amazon Corretto on Windows?

Run winget upgrade --id <Id> -e if you installed with winget, or run the newest MSI from AWS. Then change JAVA_HOME to the new version folder, because the folder name includes the version number, and confirm the update with java -version.

How to use Amazon Corretto?

Use it like any other JDK. Compile code with javac, run it with java, and point your IDE at the Corretto version folder. AWS describes it as a drop-in replacement for Java SE applications that do not depend on features missing from OpenJDK.

Where does Amazon Corretto install on macOS?

The macOS .pkg installs Corretto in /Library/Java/JavaVirtualMachines/, for example amazon-corretto-21.jdk. Run /usr/libexec/java_home --verbose in Terminal to print the complete path. You need administrator permissions to install or remove it on a Mac.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *