Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Create and Deploy a Java Web App to Google App Engine

Learn how to create and deploy a java web app to Google app engine with clear steps, practical context, and useful troubleshooting guidance.

Table of Contents

This updated guide examines How to Create and Deploy a Java Web App to Google App Engine and organizes the essential facts, background, and practical takeaways in clear American English.

Part 1

Setting up the Environment

  1. Start Eclipse, running JVM version 1.7.0 or later.
  2. How to Create and Deploy a Java Web App to Google App Engine — contextual image 1 Select Help > Install New Software.
  3. How to Create and Deploy a Java Web App to Google App Engine — contextual image 2In the dialog that appears, enter the update site URL into the Work with text box: "https://dl.google.com/eclipse/plugin/4.3". Press the ?Enter key.
  4. How to Create and Deploy a Java Web App to Google App Engine — contextual image 3 Select the checkbox next to Google Plugin for Eclipse (required). ClickNext.
  5. Review the features that you are about to install. ClickNext.
  6. How to Create and Deploy a Java Web App to Google App Engine — contextual image 4 Read the license agreements and then select "I accept the terms of the license agreements". ClickFinish.
  7. ClickOKon the Security Warning.
  8. Click Restart Now to restart Eclipse.
  9. How to Create and Deploy a Java Web App to Google App Engine — contextual image 5 Sign in to Google by clicking in bottom-right corner.
    • Provide the Google Account Credentials and ClickSign in.How to Create and Deploy a Java Web App to Google App Engine — contextual image 6
    • Click 'Accept' after reading the required permissions.How to Create and Deploy a Java Web App to Google App Engine — contextual image 7
    • Now you are logged in to your Google Account.How to Create and Deploy a Java Web App to Google App Engine — contextual image 8
    • You are ready to build App Engine web applications and mobile backends for your Android applications!

Part 2

Creating the Application in GAE

  1. Go to appengine.google.com
  2. How to Create and Deploy a Java Web App to Google App Engine — contextual image 9 Login to your account using google account credentials. A new page is opened where it displays all the google app engine applications created by you.
  3. How to Create and Deploy a Java Web App to Google App Engine — contextual image 10 Click 'Google Developers Console' link. A new window opens.
  4. How to Create and Deploy a Java Web App to Google App Engine — contextual image 11 Google Developers Console is opened.
  5. How to Create and Deploy a Java Web App to Google App Engine — contextual image 12 Click 'Create new Project'.
  6. How to Create and Deploy a Java Web App to Google App Engine — contextual image 13 Enter the project name and edit the app ID as desired but it must be unique. An error is shown if the app id is not available.
  7. How to Create and Deploy a Java Web App to Google App Engine — contextual image 14 ClickCreate. Your newly created app is ready. Now you can deploy the java web app code to this app id.

Part 3

Creating the Application in Eclipse

  1. How to Create and Deploy a Java Web App to Google App Engine — contextual image 15 Open Eclipse. Go to File > New > Web Application Project.
  2. How to Create and Deploy a Java Web App to Google App Engine — contextual image 16 Enter the project name and package name. Uncheck the Google Web Toolkit.
  3. How to Create and Deploy a Java Web App to Google App Engine — contextual image 17 ClickFinish.
    • Your project folder and its internal hierarchy will be created as shown in the figure.How to Create and Deploy a Java Web App to Google App Engine — contextual image 18
  4. How to Create and Deploy a Java Web App to Google App Engine — contextual image 19 Open index.html which is present in the war folder of your project.
  5. How to Create and Deploy a Java Web App to Google App Engine — contextual image 20 Edit the HTML as desired. Currently we are not using any servlet hence remove the servlet link from the html.
  6. How to Create and Deploy a Java Web App to Google App Engine — contextual image 21 Open web.xml and make sure that index.html is set as the welcome file.
  7. Save the project.

Part 4

Deploying the App to Google App Engine

  1. How to Create and Deploy a Java Web App to Google App Engine — contextual image 22How to Create and Deploy a Java Web App to Google App Engine — contextual image 23 Right click on the project name in the package explorer. Go to Deploy > Google #App Engine. A window will pop-up.
  2. How to Create and Deploy a Java Web App to Google App Engine — contextual image 24 Click on the 'Application Settings' link. A new window will pop-up.
  3. How to Create and Deploy a Java Web App to Google App Engine — contextual image 25 Enter the App ID which you previously created and clickOK. ClickDeploy.
  4. How to Create and Deploy a Java Web App to Google App Engine — contextual image 26How to Create and Deploy a Java Web App to Google App Engine — contextual image 27 After the app is deployed, it will open in the browser automatically. The app will be available at www.app-id.appspot.com.

FAQ

What is How to Create and Deploy a Java Web App to Google App Engine about?

It provides a structured overview of google, explains the main context, and highlights practical takeaways for readers.

Why does this topic matter?

Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.

How should readers use this information?

Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.