Categories: BlogCanonicalUbuntu

Java 25 now available on Google Cloud Serverless

[December 11, 2025] Today Canonical, the publisher of Ubuntu, announced the immediate availability of Java 25 across Google Cloud’s serverless portfolio, including Cloud Run, App Engine, and Cloud Functions.

This release is the result of a collaboration between Google Cloud and Canonical, and it will allow developers to access the latest Java features the moment they are released publicly. All three serverless products use Ubuntu 24.04 as the base image, with Canonical actively maintaining the runtime and ensuring timely security patches.

Simplified deployment with Buildpacks

Deploying Java 25 is easy and fast thanks to Google Cloud Buildpacks. You do not need to create manual Dockerfiles or manage complex container configurations.

Buildpacks are designed to transform your source code into a production-ready container image automatically. When you deploy your application, the Buildpacks system detects your requested Java version and automatically provisions the Ubuntu-based Java 25 environment, which Canonical team continuously updates with security fixes. This “source-to-deploy” workflow allows you to focus entirely on writing code while Google Cloud and Canonical handle the underlying OS and runtime security.

Get started

To get started, simply use the GOOGLE_RUNTIME_VERSION environment variable to specify the JDK version to 25.  

pack build java-app –builder=gcr.io/buildpacks/builder –env GOOGLE_RUNTIME_VERSION=25

To learn more about Canonical support on Java, please read our reference documentation.

More reading and resources

Ubuntu Server Admin

Recent Posts

How to Harden Security of VPS Server

This article demonstrates how to harden security of VPS server and is intended for server…

2 hours ago

How to install Wget on Ubuntu 24.04

In this blog post, we will guide you on how to install wget on Ubuntu…

21 hours ago

Xfwl4 – The roadmap for a Xfce Wayland Compositor

Jan 27,2026 Xfwl4 - The roadmap for a Xfce Wayland Compositor We, the Xfce team…

4 days ago

🚀 Deploy n8n on Ubuntu VPS (Quick-Start Guide)

This article provides a step-by-step how-to guide to deploy n8n on Ubuntu VPS. What is…

4 days ago

How to avoid package End of Life through backporting

In July 2025, git received CVE-2025-48384, a high vulnerability allowing arbitrary code execution when cloning…

1 week ago

Showcasing open design in action: Loughborough University design students explore open source projects

Last year, we collaborated with two design student teams from Loughborough University in the UK.…

2 weeks ago