Amazon Corretto 21
Amazon Web Services · Free Amazon-maintained OpenJDK 21 LTS for compiling and running Java applications; architecture-specific Mac packages and no AWS account required locally.
brew install --cask corretto@21- 30-day installs
- 1,372
- #245 in App
- 1-year installs
- 17.3K
- Last 365 days
- Latest version
- 21.0.13.1.2
- Download size
- 200MB
- pkg
- Release cadence
- Monthly
- 1 release in 30 days
About
Amazon Corretto 21 is Amazon's no-cost, long-term-supported distribution of OpenJDK 21. It provides a Java Development Kit for developers and users running applications that require Java 21, with a JVM, compiler and standard development, diagnostic and packaging tools. This entry is specifically the corretto@21 Mac cask, not the unversioned Corretto cask or another Java major release.
Features and intended use
- Compile and run Java 21 applications with the OpenJDK toolchain.
- Use Java 21 language/runtime features, including virtual threads and modern language improvements, where the application supports them.
- Obtain Amazon-maintained security, stability and performance updates.
- Use standard Java tools such as java, javac, jar, javadoc and diagnostic utilities.
- Develop locally or deploy compatible applications on other supported platforms using separate builds.
Corretto is a runtime and development kit, not a graphical code editor, an AWS cloud account or a bundled application server. Amazon certifies Corretto with the Java Technology Compatibility Kit. Compatibility with Java SE does not guarantee that an application depending on a different Java major version, proprietary extensions or native libraries will work unchanged.
Install and select the JDK
Install with brew install --cask corretto@21, or use the official architecture-appropriate Mac PKG installer. AWS's guide requires administrator permissions for installation and removal and places the JDK under /. The captured cask lists no additional formula dependency or explicit conflicting cask.
Multiple JDKs can coexist, but your shell, IDE and build tools must select the intended one. AWS documents / for listing installed JDK paths and JAVA_HOME= for selecting Corretto 21. Setting JAVA_HOME replaces that environment variable's previous value; it does not remove other JDKs. Configure the IDE and build-tool toolchain separately when needed, and ensure PATH resolves the matching tools. Verify the reported Java vendor, major version and architecture before relying on a build.
Back up project/toolchain configuration and test applications before updating. Removing a JDK can break applications pointing at its path; inspect dependencies and selected runtimes first. The package does not require enabling Accessibility, Screen Recording or Full Disk Access for ordinary Java compilation. Applications run by Java can have their own file, network and macOS permission requirements.
Platforms and compatibility
The latest three recorded Corretto 21 builds target macOS 14 or later on x86_64 and aarch64. AWS's current FAQ supports macOS versions still receiving Apple security patches and currently lists Sonoma 14 or later. The generic installation guide still has a macOS 11-or-later heading; that procedural guide is not a promise that the current build supports every old OS. Use the current release target/support information when choosing a version.
The captured current download is the Apple Silicon aarch64 PKG. Intel Macs use the separate x64 package. These Mac builds are 64-bit; do not infer a 32-bit Mac build from older Corretto/Windows offerings. Native JNI libraries and other application dependencies must match the selected architecture. Windows and Linux have their own builds, dependency requirements and packaging; Linux headless/RPM changes are not Mac prerequisites.
JavaFX is not bundled with Corretto 21. Applications requiring JavaFX need an appropriate separate OpenJFX dependency and compatible native modules. Do not transfer historical Corretto 8 JavaFX inclusions to this Java 21 entry. A JVM also does not automatically supply application libraries, Maven/Gradle or an IDE.
Versions and maintenance
The full Corretto build identifier matters. The latest records are 21.0.12.12.1, 21.0.12.9.1 and 21.0.12.8.1; they are separate maintenance builds even though they share a Java 21.0.12 family number. Their official changelogs describe different timezone, Mac metadata, upstream baseline and security changes. Keep the vendor build number when comparing installed packages or troubleshooting.
AWS currently lists Corretto 21's last planned update as July 2030 and end of life as October 2030. Review the current support calendar before long-term deployment. Regular updates do not substitute for testing your own application and third-party libraries. Local compilation and execution can work offline once the JDK and project dependencies are present; downloads, updates and cloud services need connectivity.
Cost, accounts and license
Corretto is distributed without charge under GNU GPL version 2 with the Classpath Exception, with applicable notices for included components. An AWS account, cloud subscription or AWS Support Plan is not required to download the public JDK or run local Java programs. Corretto's no-cost long-term updates are distinct from optional paid AWS support assistance. Deploying on AWS or using other cloud services can require accounts and incur their normal charges.
The official 21.0.12.12.1 Apple Silicon Mac PKG is 200,717,360 bytes, verified through HTTP HEAD metadata. Installed storage and project dependencies require additional space. Intel package size may differ. The JDK itself does not upload your project merely because it is Amazon-branded; network behavior depends on the Java applications and tools you run.
Sources: Corretto overview, Official FAQ, Mac installation guide, Java 21 repository and releases.
Historical Corretto family workflow
The publisher's 2019 tutorial demonstrates installing Corretto 8 and running Tomcat on Linux ARM64. The accompanying browser screenshot shows Corretto 8.232 runtime properties after that workflow. It illustrates the Corretto product family, not Corretto 21, a current Mac installation, or a bundled application server. Use the Corretto 21 installation instructions above for this package. Official AWS tutorial.
At a glance
- Chip
- Apple silicon · Intel
- Auto-updates
- No
- Repository
- Open source · GPL-2.0 · Updated 4 days ago★127
- Developer
- Amazon Web Services
- Homebrew
- Available; updated by Homebrew
- Also known as
- AWS Corretto JDK, corretto@21
- Homepage
- corretto.aws
- Token
- corretto@21
Checked
What’s new in 21.0.13.1.2
New · From GitHub Releases
For release notes see: CHANGELOG.md
Download Links
| Platform | Type | Download Link | Checksum (MD5) / Checksum (SHA256) | Sig File |
|---|---|---|---|---|
| Linux x64 | JDK | java-21-amazon-corretto-jdk_21.0.13.1.2-1_amd64.deb | af94afd9615490608211868b7cac0620 / c365469853d9296728bb19e629225fef04b45e595e3467d8a0778450367381e0 |
|
| Linux x64 | JDK | java-21-amazon-corretto-devel-21.0.13.1.2-1.x86_64.rpm | 3d3401f8be8d7c90b5a758b1d61c05b9 / d2c19f2247a83937b9fd6d16f90fe3ca7e4615babf8eca8e0e12cfd7315e2b5f |
|
| Linux x64 | JDK | amazon-corretto-21.0.13.1.2-linux-x64.tar.gz | 9e596431ec718c529ee9238f983eb5eb / 2aaa2a9a43143b20ff0b28c8d0da27407b97dc40b160d9a2f60a26965815e948 |
Download |
| Linux aarch64 | JDK | java-21-amazon-corretto-jdk_21.0.13.1.2-1_arm64.deb | a66de2e0b6cec7593aabbebf62c87423 / d251fb09557ccf7992d36b810a96df859531821679d21d0ab1eddc2b8e8c1ba0 |
|
| Linux aarch64 | JDK | java-21-amazon-corretto-devel-21.0.13.1.2-1.aarch64.rpm | 22ec9409e8d69aefafec61058a7f46a5 / 1f2d495b83d0b07596ce3539a7fd7f642c9495556e53cee3caad41eefe65977d |
|
| Linux aarch64 | JDK | amazon-corretto-21.0.13.1.2-linux-aarch64.tar.gz | 994f8379ee74343f061616f39972f15e / 55751c47c7e3be3b33af43ccdcf3a6f4814d308390b7400477594d421bd16a53 |
Download |
| macOS x64 | JDK | amazon-corretto-21.0.13.1.2-macosx-x64.pkg | 67fad711dd5a18c17d1dc42fc976d4c6 / 9da41fc16749791b0b122da9566b56fa7a58b3835bf5be1ec3a0b44363e1ffe7 |
|
| macOS x64 | JDK | amazon-corretto-21.0.13.1.2-macosx-x64.tar.gz | c28bd94de260ba0de8b37dfee2ecf5ab / 83095d9de2fe412151eede49e0373eeb5290bc0b82cc60cedb35e1da2d0a5ecc |
Download |
| macOS aarch64 | JDK | amazon-corretto-21.0.13.1.2-macosx-aarch64.pkg | a6673b6b61a07f6d6a12bf2f04f0c708 / 59a76664d3de70042f4ac37d28a53eb2e3cf7aecc085a8e89ef1955c1e36cdee |
|
| macOS aarch64 | JDK | amazon-corretto-21.0.13.1.2-macosx-aarch64.tar.gz | 5a311e950e73b19499978b1883351e30 / 3e566c5b2760dc4f2199ac68b09a1b7c5381f228a336f3514a1aad4c113d474a |
Download |
| Windows x64 | JDK | amazon-corretto-21.0.13.1.2-windows-x64.msi | 4301c16a3e2dd04538ce8d3eb93cb63a / fd52d8bbc21f715e0f865f468f3420170a7bc3edf16aab0baeb630a3a432dff3 |
|
| Windows x64 | JDK | amazon-corretto-21.0.13.1.2-windows-x64-jdk.zip | 346402f739b8ab2e9346f3e179abb873 / e91d8d38fe7af1e13ddde5c65d6c0cdd62d68fe091e9003464f5b45c422fb683 |
Download |
| Alpine Linux x64 | JDK | amazon-corretto-21.0.13.1.2-alpine-linux-x64.tar.gz | ec2547637020df1bf085b0af2dac33e3 / a671ae063e57662ca230c4f8b17456ad13bf1e8593bd95e6ab80c74d5b8c1aa7 |
Download |
| Alpine Linux aarch64 | JDK | amazon-corretto-21.0.13.1.2-alpine-linux-aarch64.tar.gz | 61c46d31ec9ca98cb43903d934c7d7e5 / 87bb147c89a3d614fbe4d27e62fb324e87685d0c5425dee59af1fa553bc8ba45 |
Download |
Amazon Linux
| Platform | Type | Download Link | Checksum (MD5) / Checksum (SHA256) |
|---|---|---|---|
| Amazon Linux 2023 x64 | JDK | java-21-amazon-corretto-devel-21.0.13.1.2-1.amzn2023.1.x86_64.rpm | ae3f8cb2259cf1e66cec5376de462a08 / a2adc6af35c801cda6b808187369f579ebb044e92a93e4d73f6c7d731bd9f490 |
| Amazon Linux 2023 x64 | JRE | java-21-amazon-corretto-headless-21.0.13.1.2-1.amzn2023.1.x86_64.rpm | 96fafde16af7e0ec7c537929ad211d37 / 3beea477f828c0690141f96416f55531e58a2b2a7ae8109cfc7bf8bcca567d68 |
| Amazon Linux 2023 x64 | HEADFUL | java-21-amazon-corretto-21.0.13.1.2-1.amzn2023.1.x86_64.rpm | bfba1cb73197fed7099572dee213c93c / dbd9b997ad95fccdf4f61b88eabe85f5bb251cc9ab540cd146df3c663099897a |
| Amazon Linux 2023 x64 | JMODS | java-21-amazon-corretto-jmods-21.0.13.1.2-1.amzn2023.1.x86_64.rpm | 0c78ab088bbed7422906a6bc6c362da9 / 216900389d7a5cd2e6a7a947df81a7b335a0140cf29dd22c880f1dce6673643f |
| Amazon Linux 2023 aarch64 | JDK | java-21-amazon-corretto-devel-21.0.13.1.2-1.amzn2023.1.aarch64.rpm | 4761ba77351c099a141d80c18d8107a8 / 05ef2c331387b06d09cf6278d33e06fc9ec30bebf46e36c5384484f0a9571d13 |
| Amazon Linux 2023 aarch64 | JRE | java-21-amazon-corretto-headless-21.0.13.1.2-1.amzn2023.1.aarch64.rpm | 28b0a5d4262de7ebdaa5370af32c3191 / 6f3d0d48439f7c5d3caf83eb0e998fa8dd49c05fec5ad7cd848e2c1594c0c58b |
| Amazon Linux 2023 aarch64 | HEADFUL | java-21-amazon-corretto-21.0.13.1.2-1.amzn2023.1.aarch64.rpm | 9d3522fe8accb7583a075bb930043d49 / 53d32d635519c43a13539126e51bf28e03b2265169d4cf38952ce5548a601b19 |
| Amazon Linux 2023 aarch64 | JMODS | java-21-amazon-corretto-jmods-21.0.13.1.2-1.amzn2023.1.aarch64.rpm | 4804d44d1ddda82c42ffa007cf9dcfaa / 7d1aa3c799aec0a03504f2f5c0e32f649ff4d759e360bca9e63fe39b3bb9b3e1 |
| Amazon Linux 2027 x64 | JDK | java-21-amazon-corretto-devel-21.0.13.1.2-1.amzn2027.1.x86_64.rpm | 73a496883df6c7e58267f0fb81224fcf / c2c697c92f585db938370bebc54be96b5f896bb1b8033602d80ab43d1d51beb0 |
| Amazon Linux 2027 x64 | JRE | java-21-amazon-corretto-headless-21.0.13.1.2-1.amzn2027.1.x86_64.rpm | 65214a6760191a9e21c19b548be0fc2f / b9f487b2bc029409d902b74707368aa1054fdfbfbc7f3ffdba762e0afa8aa30e |
| Amazon Linux 2027 x64 | HEADFUL | java-21-amazon-corretto-21.0.13.1.2-1.amzn2027.1.x86_64.rpm | 9f8d7008cf2ec93c411ee3f4d0a78545 / ee08510c58a25e84e56ee11b0cd0308c0e4382b064878102f67cf7dfa0b27a09 |
| Amazon Linux 2027 x64 | JMODS | java-21-amazon-corretto-jmods-21.0.13.1.2-1.amzn2027.1.x86_64.rpm | 4a0909071527deb7764026c58edd858e / 20b1b3d84c25e13f2a538087035ddd29968a1506b4d488976d1c27e411982b1c |
| Amazon Linux 2027 aarch64 | JDK | java-21-amazon-corretto-devel-21.0.13.1.2-1.amzn2027.1.aarch64.rpm | ea28c2e9fdd3b0cd1c2d66a72c95c5c4 / e73ac06ea102fcc4cf611669401adcd8f06c529ab8aae8254e1718d6e9533a89 |
| Amazon Linux 2027 aarch64 | JRE | java-21-amazon-corretto-headless-21.0.13.1.2-1.amzn2027.1.aarch64.rpm | 1bca0d5b47e2449fcf25c61c094b37a3 / 6ad7dbbc3c6d968807290698bbd2a796413ec6dc19d943e05488c2e3f9d817b9 |
| Amazon Linux 2027 aarch64 | HEADFUL | java-21-amazon-corretto-21.0.13.1.2-1.amzn2027.1.aarch64.rpm | fd7bdb29c29f2c6120506d3591dbb874 / 693a7f5acf9d77c713fdb491f5f4fb44fd5e550768b2ba00058ecb2fd8ce1b25 |
| Amazon Linux 2027 aarch64 | JMODS | java-21-amazon-corretto-jmods-21.0.13.1.2-1.amzn2027.1.aarch64.rpm | 0d5d46caf6df96afff228f4261089a0d / face7843749254679cbe6eac42ec305a216f128f3222eb65c62c309e64463779 |
Debug Symbols
| Platform | Download Link | Checksum (MD5) / Checksum (SHA256) | Sig File |
|---|---|---|---|
| Linux x64 | amazon-corretto-debugsymbols-21.0.13.1.2-linux-x64.tar.gz | 89c3480d946d6de333c7718ff187fa00 / 076c3a28d73831e21221215bc73f3641f88ffee272ed9c3244fe35fd87194576 |
Download |
| Linux aarch64 | amazon-corretto-debugsymbols-21.0.13.1.2-linux-aarch64.tar.gz | eb56ec2d32f789eedf660d83258aff8a / b58cdc3d410e0420098adec9c487b56cf99485f22e9bb363d8df26d3cd844746 |
Download |
| macOS x64 | amazon-corretto-debugsymbols-21.0.13.1.2-macosx-x64.tar.gz | c91028a45647beb4c543f9b1f096b180 / fad05cddb5f5d1733eca77d4e2ade41e83f931211bbf3013d980ead0f5a949bd |
Download |
| macOS aarch64 | amazon-corretto-debugsymbols-21.0.13.1.2-macosx-aarch64.tar.gz | 84338c16e07514043c2f0174238e2a78 / 13ba8d2c071002231cf2fb66596112addc3774507f01b616c743cbc773f692d6 |
Download |
| Alpine Linux x64 | amazon-corretto-debugsymbols-21.0.13.1.2-alpine-linux-x64.tar.gz | eb02b207db64f1048efb3372fcbf6b3d / 9f96dcb2150f874f7cbb4d7acde1ad6bed338577e79ea1c2fd93714794233d32 |
Download |
| Alpine Linux aarch64 | amazon-corretto-debugsymbols-21.0.13.1.2-alpine-linux-aarch64.tar.gz | 96ecce87a34593d92bc5d6f1962582ed / e85513a53c11aff9f1528900d95d960e2c0d6e28f354f73af18a6e72dcc1de1c |
Download |
| Amazon Linux 2023 x64 | java-21-amazon-corretto-debugsymbols-21.0.13.1.2-1.amzn2023.1.x86_64.rpm | 4df58f905291f613e1d5e45d2c577781 / 32d31f5b9a7c0837dd2eb2d2f3cdbad45a52a84e507e656775626855fd88aca5 |
|
| Amazon Linux 2023 aarch64 | java-21-amazon-corretto-debugsymbols-21.0.13.1.2-1.amzn2023.1.aarch64.rpm | 530f30ae4a2567be0dfa31d25865868d / 802fa16686f25661c81cb3c5f5ab9337cbe1d23bdf635d07b71bcb553acddbbb |
|
| Amazon Linux 2027 x64 | java-21-amazon-corretto-debugsymbols-21.0.13.1.2-1.amzn2027.1.x86_64.rpm | f6c92ee0651e60244ada0ff6756c118b / f18ee55bc49d08a2f871d42592502288072f930599f2c914a8926852c4f3b3b7 |
|
| Amazon Linux 2027 aarch64 | java-21-amazon-corretto-debugsymbols-21.0.13.1.2-1.amzn2027.1.aarch64.rpm | 89f9ff832a029cfe304dbac766db6439 / 83f9d8936c4a0c94c9b6a709d7a8c0027b7ad22915c5016267de8a2d037c9089 |
How to install Amazon Corretto 21 on Mac
Homebrew runs the amazon-corretto-21.0.13.1.2-macosx-aarch64.pkg installer, which asks for an administrator password.
Install without Homebrew
Download the file Homebrew uses for your chip: Install Details
Uninstall Amazon Corretto 21 and optional data cleanup
brew uninstall --cask corretto@21A regular uninstall removes the app and keeps its settings and caches.
Questions about Amazon Corretto 21
Is Amazon Corretto 21 safe?
Amazon Corretto 21 is in Homebrew’s official catalog and has not been disabled. Since September 2026, Homebrew disables apps that fail macOS Gatekeeper checks. When installing, Homebrew checks the download from corretto.aws against its SHA-256 checksum. It was installed 1,372 times through Homebrew in the last 30 days.
Is Amazon Corretto 21 open source?
Amazon Corretto 21’s source code is public on GitHub (corretto/corretto-21) under the GPL-2.0 license.
How do I completely uninstall Amazon Corretto 21 on a Mac?
Run brew uninstall --cask corretto@21. It forgets 1 installer receipt.
Does Amazon Corretto 21 run on Apple silicon (M1 and later) Macs?
Yes. Homebrew downloads separate builds for Apple silicon and Intel Macs.
What is the latest version of Amazon Corretto 21?
The latest version is 21.0.13.1.2, added to Homebrew on Nov 17, 2026. Run brew upgrade --cask corretto@21 to update it.
What else does installing Amazon Corretto 21 add?
It installs through a .pkg installer, which asks for an administrator password.
Similar Apps
- GCC ARM EmbeddedArm GNU command-line cross-toolchain for C/C++ bare-metal firmware, with arm-none-eabi compiler, binary utilities, libraries and debugger.
- Azul Zulu Java8 SE JDK 8Free OpenJDK8 development kit from Azul for applications and development tools requiring Java8, with architecture-specific Mac installers.
- Eclipse Temurin 11Free OpenJDK 11 HotSpot development kit for running Java 11 applications and building compatible Java projects.
- Azul Zulu JDK 21Azul’s OpenJDK Java 21 development kit for compiling and running Java applications on Intel and Apple Silicon Macs.