Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Amazon Corretto 8

DZone's Guide to

Amazon Corretto 8

Want to learn more about the Amazon distribution of the OpenJDK?

· Java Zone ·
Free Resource

"I love writing authentication and authorization code." ~ No Developer Ever. Try Okta Instead.

Amazon Corretto is a production-ready distribution of OpenJDK with long-term support including performance and security updates provided by Amazon.

AWS Open Source@AWSOpen

Amazon Corretto 8, our no-cost, multiplatform, production-ready distribution of OpenJDK, is now Generally Available. Read all about what's new, including support for additional platforms, at: https://amzn.to/2WuYbgY Download #corretto from https://amzn.to/2Wz2pEd

160

Amazon provides installation packages and instructions for Linux, Windows, and macOS, as well as a Docker. The latest installation package is based on OpenJDK version 1.8.0_202:

$ java -version
openjdk version "1.8.0_202"
OpenJDK Runtime Environment Corretto-8.202.08.2 (build 1.8.0_202-b08)
OpenJDK 64-Bit Server VM Corretto-8.202.08.2 (build 25.202-b08, mixed mode)
$


If you don’t want to or aren't able to install Corretto on your workstation, it is pretty straightforward to try it out using Docker:

$ docker build -t amazon-corretto-8 github.com/corretto/corretto-8-docker
Sending build context to Docker daemon  92.67kB
Step 1/2 : FROM amazonlinux:2
 ---> 2467e0b1e917
Step 2/2 : RUN yum -y update  && amazon-linux-extras enable corretto8  && yum -y install java-1.8.0-amazon-corretto-devel  && yum clean all
 ---> Using cache
 ---> b18979bd4a12
Successfully built b18979bd4a12
Successfully tagged amazon-corretto-8:latest
$

$docker run -it amazon-corretto-8

bash-4.2# java -version
openjdk version "1.8.0_192"
OpenJDK Runtime Environment (build 1.8.0_192-amazon-corretto-preview-b12)
OpenJDK 64-Bit Server VM (build 25.192-b12, mixed mode)
bash-4.2#


Amazon Corretto is licensed under the same license as OpenJDK (GPLv2 with CPE) and there are no costs associated with using it. Amazon will provide quarterly security updates to Corretto 8 at least until June 2023.

But Java 8 Is Sooo Old!

Relax, Amazon plans to make Corretto 11 available during the first half of 2019. Corretto 11 will be based on OpenJDK 11.

"I love writing authentication and authorization code." ~ No Developer Ever. Try Okta Instead.

Topics:
amazon corretto ,amazon corretto 8 ,java ,java news

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}