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?
Amazon AppStream 2.0 users can now save their user preferences between streaming sessions
December 13th, 2024
Services
Share
AWS Elemental MediaConnect Gateway now supports source-specific multicast
December 13th, 2024
Services
Share
Amazon EC2 instances support bandwidth configurations for VPC and EBS
December 13th, 2024
Services
Share
AWS announces new AWS Direct Connect location in Osaka, Japan
December 13th, 2024
Services
Share
Amazon DynamoDB announces support for FIPS 140-3 interface VPC and Streams endpoints
December 13th, 2024
Services
Share