How to Create and Deploy a Java Web App to Google App Engine
The Google App Engine is a Platform as a Service by Google. With App Engine, there are no servers for you to maintain. You simply upload your application and it's ready to go. This article is for anyone who knows a little bit of web...
Part 1 of 4:
Setting up the Environment
This procedure installs the Google Plugin for Eclipse and optionally the Android Developer Tools, the Google Web Toolkit SDK, and the Google App Engine SDK.
- Start Eclipse, running JVM version 1.7.0 or later.
-
How to Create and Deploy a Java Web App to Google App Engine Picture 1
Select Help > Install New Software. -
How to Create and Deploy a Java Web App to Google App Engine Picture 2
In 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. -
How to Create and Deploy a Java Web App to Google App Engine Picture 3
Select the checkbox next to Google Plugin for Eclipse (required). Click Next. - Review the features that you are about to install. Click Next.
-
How to Create and Deploy a Java Web App to Google App Engine Picture 4
Read the license agreements and then select "I accept the terms of the license agreements". Click Finish. - Click OK on the Security Warning.
- Click Restart Now to restart Eclipse.
-
How to Create and Deploy a Java Web App to Google App Engine Picture 5
Sign in to Google by clicking in bottom-right corner.- Provide the Google Account Credentials and Click Sign in.
How to Create and Deploy a Java Web App to Google App Engine Picture 6
- Click 'Accept' after reading the required permissions.
How to Create and Deploy a Java Web App to Google App Engine Picture 7
- Now you are logged in to your Google Account.
How to Create and Deploy a Java Web App to Google App Engine Picture 8
- You are ready to build App Engine web applications and mobile backends for your Android applications!
- Provide the Google Account Credentials and Click Sign in.
Part 2 of 4:
Creating the Application in GAE
- Go to appengine.google.com
-
How to Create and Deploy a Java Web App to Google App Engine Picture 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. -
How to Create and Deploy a Java Web App to Google App Engine Picture 10
Click 'Google Developers Console' link. A new window opens. -
How to Create and Deploy a Java Web App to Google App Engine Picture 11
Google Developers Console is opened. -
How to Create and Deploy a Java Web App to Google App Engine Picture 12
Click 'Create new Project'. -
How to Create and Deploy a Java Web App to Google App Engine Picture 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. -
How to Create and Deploy a Java Web App to Google App Engine Picture 14
Click Create. Your newly created app is ready. Now you can deploy the java web app code to this app id.
Part 3 of 4:
Creating the Application in Eclipse
-
How to Create and Deploy a Java Web App to Google App Engine Picture 15
Open Eclipse. Go to File > New > Web Application Project. -
How to Create and Deploy a Java Web App to Google App Engine Picture 16
Enter the project name and package name. Uncheck the Google Web Toolkit. -
How to Create and Deploy a Java Web App to Google App Engine Picture 17
Click Finish.- 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 Picture 18
- 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 Picture 19
Open index.html which is present in the war folder of your project. -
How to Create and Deploy a Java Web App to Google App Engine Picture 20
Edit the HTML as desired. Currently we are not using any servlet hence remove the servlet link from the html. -
How to Create and Deploy a Java Web App to Google App Engine Picture 21
Open web.xml and make sure that index.html is set as the welcome file. - Save the project.
Part 4 of 4:
Deploying the App to Google App Engine
-
How to Create and Deploy a Java Web App to Google App Engine Picture 22
How to Create and Deploy a Java Web App to Google App Engine Picture 23
Right click on the project name in the package explorer. Go to Deploy > Google #App Engine. A window will pop-up. -
How to Create and Deploy a Java Web App to Google App Engine Picture 24
Click on the 'Application Settings' link. A new window will pop-up. -
How to Create and Deploy a Java Web App to Google App Engine Picture 25
Enter the App ID which you previously created and click OK. Click Deploy. -
How to Create and Deploy a Java Web App to Google App Engine Picture 26
How to Create and Deploy a Java Web App to Google App Engine Picture 27
After the app is deployed, it will open in the browser automatically. The app will be available at www.app-id.appspot.com.
5 ★ | 1 Vote
You should read it
- Toshiba will be the main supplier for Project Ara
- Google launched the Developers Kit Module for Project Ara
- How to set up a website with Project Shield: DDOS prevention service from Google
- Google's Android Silver project is postponed indefinitely
- Will Project Hera merge Android, Chrome and Google Search?
- Google launched DDoS 'unique'
- How to Open an MPP File on PC or Mac
- Google Project IDX Launched: New VSCode-Based Code Editor, AI-powered
- Google revealed Project Vault: small computers like microSD cards
- Google Project Zero reveals a serious privilege escalation vulnerability in Windows
- LG teamed up with Google to produce 'standalone' equipment.
- Google will cooperate with MediaTek in Android One project