How to Create and Deploy a Java Web App to Google App Engine
Start Eclipse, running JVM version 1.7.0 or later. , Select Help > Install New Software. ,In the dialog that appears, enter the update site URL into the Work with text box: "https://dl.google.com/eclipse/plugin/4.3"., Select the checkbox next to...
Step-by-Step Guide
-
Step 1: Start Eclipse
Press the ↵ Enter key. , Click Next. , Click Next., Click Finish. ,,, Provide the Google Account Credentials and Click Sign in.
Click ‘Accept’ after reading the required permissions.
Now you are logged in to your Google Account.
You are ready to build App Engine web applications and mobile backends for your Android applications! ,,, A new window opens. ,,, An error is shown if the app id is not available. , Your newly created app is ready.
Now you can deploy the java web app code to this app id. , Go to File > New > Web Application Project. , Uncheck the Google Web Toolkit. , Your project folder and its internal hierarchy will be created as shown in the figure. ,, Currently we are not using any servlet hence remove the servlet link from the html. ,,, Go to Deploy > Google #App Engine.
A window will pop-up. , A new window will pop-up. ,, The app will be available at www.app-id.appspot.com. -
Step 2: running JVM version 1.7.0 or later.
-
Step 3: Select Help > Install New Software.
-
Step 4: In the dialog that appears
-
Step 5: enter the update site URL into the Work with text box: "https://dl.google.com/eclipse/plugin/4.3".
-
Step 6: Select the checkbox next to Google Plugin for Eclipse (required).
-
Step 7: Review the features that you are about to install.
-
Step 8: Read the license agreements and then select "I accept the terms of the license agreements".
-
Step 9: Click OK on the Security Warning.
-
Step 10: Click Restart Now to restart Eclipse.
-
Step 11: Sign in to Google by clicking in bottom-right corner.
-
Step 12: Go to appengine.google.com
-
Step 13: 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.
-
Step 14: Click ‘Google Developers Console’ link.
-
Step 15: Google Developers Console is opened.
-
Step 16: Click ‘Create new Project’.
-
Step 17: Enter the project name and edit the app ID as desired but it must be unique.
-
Step 18: Click Create.
-
Step 19: Open Eclipse.
-
Step 20: Enter the project name and package name.
-
Step 21: Click Finish.
-
Step 22: Open index.html which is present in the war folder of your project.
-
Step 23: Edit the HTML as desired.
-
Step 24: Open web.xml and make sure that index.html is set as the welcome file.
-
Step 25: Save the project.
-
Step 26: Right click on the project name in the package explorer.
-
Step 27: Click on the 'Application Settings' link.
-
Step 28: Enter the App ID which you previously created and click OK. Click Deploy.
-
Step 29: After the app is deployed
-
Step 30: it will open in the browser automatically.
Detailed Guide
Press the ↵ Enter key. , Click Next. , Click Next., Click Finish. ,,, Provide the Google Account Credentials and Click Sign in.
Click ‘Accept’ after reading the required permissions.
Now you are logged in to your Google Account.
You are ready to build App Engine web applications and mobile backends for your Android applications! ,,, A new window opens. ,,, An error is shown if the app id is not available. , Your newly created app is ready.
Now you can deploy the java web app code to this app id. , Go to File > New > Web Application Project. , Uncheck the Google Web Toolkit. , Your project folder and its internal hierarchy will be created as shown in the figure. ,, Currently we are not using any servlet hence remove the servlet link from the html. ,,, Go to Deploy > Google #App Engine.
A window will pop-up. , A new window will pop-up. ,, The app will be available at www.app-id.appspot.com.
About the Author
Donald Robinson
Specializes in breaking down complex cooking topics into simple steps.
Rate This Guide
How helpful was this guide? Click to rate: