AWS Lambda now supports Java 8 (Corretto)
Share
Services
You can now develop AWS Lambda functions using Java 8 (Corretto). [Amazon Corretto 8](/corretto/) is a no-cost, production-ready distribution of OpenJDK 8 that comes with long-term support. Lambda functions written in Java 8 (Corretto) run on [Amazon Linux 2](/amazon-linux-2/), the latest generation of Amazon Linux. You can read more about the Java programming model in the [AWS Lambda documentation](https://docs.aws.amazon.com/lambda/latest/dg/java-programming-model.html).
Corretto 8 is designed as a drop-in replacement for OpenJDK 8\. Amazon provides patches for Corretto 8 which are not yet integrated in the corresponding OpenJDK update projects. These patches include security fixes, performance enhancements (for example, speeding up frequently-used functions), garbage collection scheduling, and preventing out-of-memory situations, as well as improved monitoring, reporting, and thread management.
To get started, upload your code through the AWS Lambda console and select the Java 8 (Corretto) runtime. You can also use AWS CLI, [AWS Serverless Application Model (SAM)](/serverless/sam/) and [AWS CloudFormation](/cloudformation/) for deploying and managing your serverless applications authored in Java 8 (Corretto). To migrate existing AWS Lambda functions running in OpenJDK 8 to Java 8 (Corretto), update your code to be compatible with Amazon Linux 2, and then update the function runtime to Java 8 (Corretto).
The Java 8 (Corretto) runtime is available in [all Regions where Lambda is available](/about-aws/global-infrastructure/regional-product-services/). Please visit our [product page](/lambda/) for more information about AWS Lambda or log in to the [AWS Lambda console](https://console.aws.amazon.com/lambda/home) to get started.
What else is happening at Amazon Web Services?
AWS Elemental MediaLive now supports color space conversion with custom tone mapping
about 19 hours ago
Services
Share
Read update
Services
Share
AWS DMS adds support for Amazon Relational Database Service for Db2 as a target endpoint
about 19 hours ago
Services
Share
Amazon Rekognition launches Face APIs version 7 for improved accuracy and lower latency
about 22 hours ago
Services
Share
AWS Secrets Manager announces 99.99% Service Level Agreement
about 23 hours ago
Services
Share
Amazon Connect adds an additional 24 contact and agent metrics to access programmatically
about 23 hours ago
Services
Share