Build a Java app on App Engine

Note: If you are deploying a new Java web service to Google Cloud,we recommend getting started withCloud Run.

This guide helps you get started with App Engine and become familiar withdeploying and managing an app. The tasks on this page walk you through thebasics of App Engine, guiding you through the development process.Each task includes steps that build up to a simple web app. After you buildyour app, you can use the other tutorials to learn how to integrate with otherGoogle Cloud services and add more features to your app.

Costs

Running this sample app alone does not exceed the free quotas.

Note: You can't delete the default app.

Getting started

Learn how to build a simple web app and deploy it on App Engine:

  1. Create a Google Cloud project

    Learn how to create a Google Cloud project to hold your App Engine app'sresources.

  2. Write a web service with Java

    Learn how to write a web server and declare runtime settings.

  3. Deploy your service on App Engine

    Learn how to deploy your Java code on App Engine and view yourlive web service.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.