What Is Amazon Corretto

What Is Amazon Corretto For?

Amazon Corretto is a free, cross-platform, production-ready distribution of the Open Java Development Kit (OpenJDK). Corretto comes with long-term support that includes performance improvements and security fixes. Amazon runs Corretto internally on thousands of production services and Corretto is certified as compliant with Java SE standards. Corretto lets you develop and run Java applications on popular operating systems such as Linux, Windows, and macOS.

Advantages

Provided By Amazon

Amazon Corretto comes with free long-term support from Amazon, so you can update your version only when needed. Amazon is committed to Corretto and runs it internally on thousands of production services.

Ready For Production

Amazon Corretto is certified to comply with Java SE standards and is available as a drop-in replacement for many Java SE distributions. Amazon provides quarterly updates with performance improvements and security fixes essential for developing enterprise applications.

Multi-Platform Support

Amazon Corretto lets you run the same environment in the cloud, on-premises, and on your local computer. Corretto 17 supports Linux (x64 and aarch64), Windows (x64), macOS (x64 and M1), Alpine Linux (x64), Amazon Linux 2 (x64 and aarch64). Docker images are available at the ECR Public Gallery and Docker Hub.

No Cost

Amazon Corretto is free to download and use. No additional paid features or restrictions.

Is Amazon Corretto The Same As JAVA?

•Corretto is a build of the OpenJDK (Open Java Development Kit) with long-term support from Amazon. Corretto is certified with the Java Technical Compatibility Kit (TCK) to ensure it meets Java SE standards and can be used on Linux, Windows, and macOS. It includes patches from Amazon that have proven useful when running its own services.

•Corretto has performance-specific optimizations (such as for server or cloud applications) and additional bug fixes available to users, but not necessarily in OpenJDK yet. Still, Amazon provides decent LTS support for their own builds, as do other commercial companies for the JDK (Oracle, Azul, etc.).

Why Did Amazon Created Corretto?

•The main reason is that it’s simply designed to be a “standalone product” to generate revenue. People buy products, Amazon gets paid, and that’s it.

•Oracle is changing its Java licensing and support. If you want to get the latest patches for free, you should keep updating Java to the latest OpenJDK version. Amazon provides free long-term support for Java by backporting patches to older versions. This is because Java is part of the supported cloud platform and Amazon wants to make things easier for their cloud customers. Being open source, Amazon’s Java distribution works for everyone

Amazon Corretto Downloads

Install Amazon Corretto 11

•The 1st step is to download a Windows .msi file from the Downloads page.

• Now, you have to double-click on the .msi file to initiate the installation setup wizard.

• You are required to follow all the steps in the installation wizard + You will be also provided with the option of setting up a custom installation path.

• Amazon Corretto Eleven (11) is installed at C:\Program Files\Amazon Corretto\ by default.

•Make a note of the custom path if you set it up.

• Set the PATH and JAVA_HOME environment variables once the installation wizard is completed.

• Set JAVA_HOME to the location to which you have installed Amazon Coretto 11, noting that the directory consists of the presently installed version. For instance, if the default location or directory is used for 11.0.7, then set JAVA_HOME as C:\Program Files\Amazon Corretto\jdk11.0.7_10.

•Add %JAVA_HOME%\bin to the current PATH variable.

• Verify and validate the installation process by running java -version in a command prompt. You should see the aforementioned output.

openjdk version “11.0.7” 2020-04-14 LTS

OpenJDK Runtime Environment Corretto-11.0.7.10.1 (build 11.0.7+10-LTS)

OpenJDK 64-Bit Server VM Corretto-11.0.7.10.1 (build 11.0.7+10-LTS, mixed mode)

Uninstall Amazon Corretto 11

•One can uninstall Amazon Corretto Eleven (11) by following the requisite and standard steps for uninstalling an app from Windows.

• Open Programs and Features.

• Search for the application i.e. Amazon Corretto 11 and then choose it.

• Select uninstall.

Amazon Corretto VS OpenJDK

Corretto is a distribution of OpenJDK that contains Amazon-provided patches that have not yet been integrated into the corresponding OpenJDK update project. It focuses on patches that improve the performance or stability of OpenJDK, selected based on Amazon’s observations of running services at scale.

Amazon Corretto Version

Sr NoCorretto VersionDownload Page
1Corretto 8Download
2Corretto 11Download
3Corretto 15Download
4Corretto 16Download
5Corretto 17Download
6Corretto 18Download
7Corretto 19Download

Can Corretto be used as a direct replacement for other JDKs?

Corretto is designed as a drop-in replacement for all Java SE distributions, unless you use features not available in OpenJDK.

Once the Corretto binaries are installed on the host and successfully invoked to run the Java application (such as using the “Alternatives” command on Linux), the existing command line options, optimization parameters, monitors, and anything else present will be Works.

What operating systems does Corretto 8 support?

•Corretto 8 installation and setup packages are distributed by Amazon for macOS, Windows, Linux (glibc), and Linux (musl-libc). Additionally, the official Docker image is hosted on Docker Hub.

• Windows builds are supported for versions 7, 8, 10, Server 2008 R2, Server 2012, Server 2016, and Server 2019.

•macOS builds are supported on all versions of macOS that still receive security patches from Apple. Currently supported versions are 10.15 (Catalina) and above on x64 (Intel) and 11.0 (Big Sur) and above on aarch64 (M1) architectures.

• Linux (glibc) builds are supported on Red Hat Enterprise Linux 6+, CentOS 6+, Ubuntu Linux 14+, Debian Linux 8+, Amazon Linux AMI, SUSE 12+.

What operating systems does Corretto 11 support?

•Corretto 11 installation packages are distributed by Amazon for macOS, Windows, Linux (glibc), and Linux (musl-libc). Additionally, the official Docker image is hosted on Docker Hub.

• Windows builds are supported for versions 7, 8, 10, Server 2008 R2, Server 2012, Server 2016, and Server 2019.

• MacOS builds are supported on all versions of macOS that still receive security patches from Apple. Currently supported versions are 10.15 (Catalina) and above on x64 (Intel) and 11.0 (Big Sur) and above on aarch64 (M1) architectures.

•Linux (glibc) builds are supported on Red Hat Enterprise Linux 6+, CentOS 6+, Ubuntu Linux 14+, Debian Linux 8+, Amazon Linux AMI, SUSE 12+.

• Linux builds (musl-libc) are supported on Alpine Linux 3.12 and newer.

• Linux Arm (glibc) builds are supported on Linux ARMv7+ with glibc 2.25+.

What operating systems does Corretto 17 support?

•Corretto 17 installation packages are distributed by Amazon for macOS, Windows, Linux (glibc), and Linux (musl-libc).

• Windows builds are supported for versions 7, 8, 10, Server 2008 R2, Server 2012, Server 2016, Server 2019.

•macOS builds are supported on all versions of macOS that still receive security patches from Apple. Currently supported versions are 10.15 (Catalina) and above on x64 (Intel) and 11.0 (Big Sur) and above on aarch64 (M1) architectures.

•Linux (glibc) builds are supported on Red Hat Enterprise Linux 6+, CentOS 6+, Ubuntu Linux 14+, Debian Linux 8+, Amazon Linux AMI, and SuSE 12+. Linux builds (musl-libc) are supported on Alpine Linux 3.12 and newer.

What operating systems does Corretto 19 support?

•Corretto 19 installation setup packages are distributed by Amazon for macOS, Windows,  Linux (glibc), and Linux (musl-libc).

• Windows builds are supported for versions 7, 8, 10, Server 2008 R2, Server 2012, Server 2016, Server 2019.

• macOS builds are supported on all versions of macOS that still receive security patches from Apple. Currently supported versions are 10.15 (Catalina) and above on x64 (Intel) and 11.0 (Big Sur) and above on aarch64 (M1) architectures.

• Linux (glibc) builds are supported on Red Hat Enterprise Linux 6+, CentOS 6+, Ubuntu Linux 14+, Debian Linux 8+, Amazon Linux AMI, SuSE 12+.

• Linux builds (musl-libc) are supported on Alpine Linux 3.12 and newer.

Is JavaFX included with Corretto, and if so, what version of Corretto is it bundled with?

Prior to OpenJDK 11, JavaFX was included in OpenJDK. However, in 2018 Oracle decoupled JavaFX from his OpenJDK and removed it from the OpenJDK distribution. Corretto 8 includes his JavaFX for the following platforms:

•AL2×64

•Generic Linux x64

•Windows x86 JDK

•Windows x64 JDK

•Windows x86 JRE

•Windows x64 JRE

•We do not integrate with other platforms, regardless of version. For example, JavaFX is not supported on Corretto 8 for Mac M1.

• We recommend updating to Corretto 17+, preferably Corretto 17. This is because this version contains the latest code and generally provides better performance than previous versions. In some cases, you may want to use the latest JDK that is a Short Support release with a near EOL date (https:

https://aws.amazon.com/corretto/faqs/#support_calendar). A version of JFX can be found and downloaded from the JavaFX website.

•Linux builds (musl-libc) are supported on Alpine Linux 3.12 and newer.

Amazon Corretto Docker

•Docker is a software platform that lets you quickly deploy, test, and build your applications. Docker packages software into standardized units called containers that contain everything needed to run the software, including libraries, system tools, code, and runtime. Docker allows you to quickly deploy and scale your application to any environment while knowing your code is running.

•Running Docker on AWS gives developers and administrators a reliable and cost-effective way to build, deploy, and run distributed applications at any scale.

•Docker partners with AWS to help developers accelerate delivery of modern apps in the cloud. This collaboration will allow developers to seamlessly deploy their apps to Amazon ECS and AWS Fargate using Docker Compose and Docker Desktop, leveraging the same on-premises workflows they use today.

•If your security scanner reports that your Corretto Docker image contains a CVE, the first recommended action is to check for an updated version of that image. Updated Corretto Docker images are available on this website.

•If an updated image is not available, run the appropriate command to update the packages for your platform. Run “yum update -y –security” for AmazonLinux or “apk -U upgrade” for Alpine Linux in your Dockerfile or system to fix the issue immediately.

•If updated packages are not available, please treat this as a potential security issue and follow the AWS Vulnerability Reporting Procedures or email AWS Security directly at [email protected].

•It is the base’s Docker image provider’s responsibility to provide timely security updates for images and packages. AWS only provides base Docker images for Amazon Linux available on the Docker Hub Amazon Linux 2 page and Amazon Linux 2 ECR public gallery. Alpine-based Docker images are available on the Docker Hub Alpine Linux page.

•Docker Hub will automatically rebuild his Docker image when a new base image is available, but the Corretto team makes changes to Dockerfiles that he does not include one-off package updates. If the new base image has not yet been made publicly available by the base Docker image provider, please contact that provider and request that the fix be addressed in the new base Docker image distribution.

Amazon Corretto Package Manager

Option 1

•You should use the yum package manager on the Amazon Linux.

•Enable yum repositories on Amazon Linux 2. This is no longer required for Amazon Linux 2022 and newer.

sudo amazon-linux-extras enable corretto8

•Amazon Corretto 8 can be installed as a runtime environment (JRE) or as a full development environment (JDK). A development environment includes a runtime environment.

•Install Amazon Corretto 8 as JRE.

sudo yum install java-1.8.0-amazon-corretto

•Install Amazon Corretto Eight as JDK.

sudo yum install java-1.8.0-amazon-corretto-devel

•The installation setup place or location is /usr/lib/jvm/java-1.8.0-amazon-corretto.<cpu_arch>.

Option 2

•Manually download and install the RPM.

•Download the RPM from the download page for your CPU architecture. Installing the JDK requires downloading both the JDK and JRE RPMs.

•Install using yum localinstall.

sudo yum localinstall java-1.8.0-amazon-corretto*.rpm

Confirm Installation

•Verify the installation by running the following command in Terminal:

java -version

•Expected output for 8u232:

openjdk version “1.8.0_232”

OpenJDK Runtime Environment Corretto-8.232.09.1 (build 1.8.0_232-b09)

OpenJDK 64-Bit Server VM Corretto-8.232.09.1 (build 25.232-b09, mixed mode)

•If you observe a version string that does not  mention Corretto, run the aforementioned command for changing the default java or javac providers.

sudo alternatives –config java

•If you are using the JDK you should also run:

sudo alternatives –config javac

•You can uninstall Amazon Corretto Eight (8) with the aforementioned commands.

Uninstall JRE:

sudo yum remove java-1.8.0-amazon-corretto

Uninstall JDK:

sudo yum remove java-1.8.0-amazon-corretto-devel

Frequently Asked Questions (FAQs)

What types of patches does Amazon plan to include in Corretto?

Patches include security fixes, performance improvements (such as speeding up commonly used functions), garbage collection scheduling and out-of-memory prevention, monitoring, reporting, and thread management improvements.

Are there any costs associated with using Corretto?

Corretto is distributed free of charge by Amazon under an open source license. It is licensed under the terms of the GNU Public License Version 2 with Class Path Exception (GPLv2 with CPE). Amazon does not charge any fees for use or distribution.

What does Corretto Long Term Support (LTS) mean?

Amazon Corretto is a free, cross-platform, production-ready distribution of the Open Java Development Kit (OpenJDK) with Long Term Support (LTS).

LTS includes Amazon’s commitment to provide free performance improvements and security updates until at least the specified date of the respective release version (e.g. May 2026 for Corretto 8).

Updates will be released quarterly. Amazon also plans to apply emergency fixes (including security) outside of the normal quarterly cycle as soon as they become available and ready.

What is included in Corretto Long Term Support?

Corretto Long Term Support (LTS) includes free performance improvements and security updates for Corretto 8 until at least May 2026 and for Corretto 11 until at least September 2027.

Updates will be released quarterly. Corretto’s LTS is independent of AWS Support plans. AWS Support Plans provide expert guidance and support to help you achieve your goals on AWS.

Amazon Corretto is covered on the same basis as all other supported AWS software and services if you already have an AWS support plan.

Even if you don’t have a plan, we recommend purchasing a plan if your sole purpose is to get support for Corretto.

Visit the website and decide if it’s right for you. There are currently no plans to introduce Corretto-specific support plans. As always, our roadmap reflects customer feedback and welcomes feature requests in our Corretto GitHub repository.

What is Corretto Support Calender?

What if I need help with Corretto?

For general questions about installing or running Corretto, read our documentation. If you have any OpenJDK related issues, please open an issue with the upstream OpenJDK project. If you have a specific issue with Corretto or a feature request that doesn’t apply to OpenJDK, please open an issue or feature request on the Corretto GitHub repository. If you already have an AWS Support plan, you can request support from Corretto through your plan.

What are the Corretto license terms?

Corretto is released under the same open source license as OpenJDK, licensed under the GNU Public License Version 2 with Class Path Exception (GPLv2 with CPE). You can use Corretto like OpenJDK.

How does Amazon contribute to OpenJDK?

Amazon started contributing to OpenJDK in 2017. They plan to increase both the number and complexity of contributions.

How can I contribute to Corretto?

Amazon encourages contributions to the OpenJDK project as a way to get your code into Corretto. That way, the entire OpenJDK community can benefit from your changes. If the contribution is specific to Corretto. For example, the build logic code is available on GitHub. Evaluate the issue here and pull the request.