Gae Learning Note (i): Deploying the first Gae project with Eclipse

Source: Internet
Author: User

Pre-Preparation:
    1. First you have to have a Google account.
    2. Create a Gae app. I believe everyone in learning to turn the wall when you already know how to do, here is not much to say. Not clear please Baidu "Goagent".
      remember the application ID of the app, which will be used later when the project is deployed .

?

Build the Gae development environment in eclipse:
  1. As of this publication, theGae plugin only supports Java 7. (If there is any change, please confirm https://developers.google.com/eclipse/docs/download on the official website)
    Please set Eclipse's JRE to JRE7. (Click Windows > Preferences, click Java > Installed JREs, select JRE7). If not please go to the official website to download, http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
  2. Install the appropriate version of Gae plugin in eclipse.
    Run Eclipse, click Help > Install New software, and enter the http://dl.google.com/eclipse/plugin/version number in work with. For example, if your eclipse version is 4.4, enter http://dl.google.com/eclipse/plugin/4.4. Enter and press ENTER, wait a moment, the middle of the window will appear plugin and SDKs, select all, click Next.
    If you don't know what the Eclipse version number is, see how to view the Eclipse version number.
  3. Then follow the prompts to always click Next.
  4. After the plugin installation is complete, you will be prompted to restart Eclipse and click Yes.
  5. Click File > New > Project, select Google > Web Application Project, and click Next.
  6. Enter project name and package and click Finish. A default sample project is obtained when the creation is complete.

Project development and deployment:
  1. Before you deploy to a Google server, you can now see the effect on your local run. Right-click on the project and click Debug as > Web application. The access path of the project will then appear in the development mode view below, as shown in.
  2. Double-clicking the link automatically jumps to the browser and opens the link. Some information may appear prompting you to install the browser plugin. As shown (I'm using chrome).
  3. Click the blue button to go to the Chrome Web store and install the plugin. If the prompt does not support the NPAPI plug-in, please refer to "Workaround for NPAPI plugin not supported when installing GWT Developer plugin."
  4. Once the installation is complete, go back to the page where you just prompted to install the plugin and refresh to see the Web app's interface.
  5. You can then deploy it to a Google server. Right-click on the project, click Google > App Engine Settings, enter the application ID (which app you want to deploy to), and click OK.
  6. Right click on the project and click on Google > Deploy to App Engine. You will be asked to enter your Google account and password for the first time. then click Deploy.
  7. Wait a few moments for your app to be accessed via http://[application-id].appspot.com/after the deployment is successful. If you are running the sample app and there is an exception for "An error occurred while attempting to contact the server ...", it is likely that your Java version is incorrect, try Java 7.

Note: See my blog "Gae Learning Note (i): Deploying the first Gae project with Eclipse"

Gae Learning Note (i): Deploying the first Gae project with Eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.