Peepaal

Continuous Community Learning

Setting up Google App Engine in your Lab

 

Here is the post by Vishal that i am posting on his behalf. It lists down the list of pre-requisites for setting up Google App Engine in your Lab.

 

Jagz, Saad, Roshan, Please try out these steps and let us know if you face any issues in setting it up.We need this ready before we have the Lab session.

 

Here are the pre-requisites.

1. Install Eclipse IDE for Java EE developers
URL: Download and Install Eclipse 3.5

Select Windows 32-bit.

 

 

 


2. Install Java Runtime
URL Install Java Runtime

Download from Windows section.


 

3. Install the Google Eclipse App Engine Plugin Manually:(Check the section For Eclipse 3.5)

http://code.google.com/eclipse/docs/install-from-zip.html

 

Download Plugin from Link Above

 


 

4. Download Google App Engine SDK for the url below
http://googleappengine.googlecode.com/files/appengine-java-sdk-1.4....
Extract in any specific location on your local drive

5. Download Google Web Toolkit SDK
http://google-web-toolkit.googlecode.com/files/gwt-2.1.1.zip
Extract in any specific location on your local drive

6. Restart Eclipse and try creating a Web Application Projects
- Double click on eclipse.exe.
- Select File->New->Web Application Project.
- Type in the project Name and package name.
- Select the checkbox for Google App Engine and click on configure SDK to point the location of sdk extracted in step 2.
- Select the checkbox for Google Web Toolkit and click on configure SDK to location of sdk extracted in step 3.
- Click Finish.
- If you do not see this menu option, select the Window menu > Reset Perspective..., click OK, then try the File  menu again.
- If you don't see the project type it means your installation was not correct.


7. Download JDK
URL Download and Install JDK

- Click on the box named Java EE in the Java SE downloads section.
- Select your platform i.e. Windows, Select multi language.
- Select I agree
- Click continue
- Click the file name to download it and install.

8. GWT plugin for your browser
- Open the browser you use and type the URL gwt-dev-plugin-missing.appspot.com/
- Complete the download and install workflow.

8. Create a project in Eclipse.
- Double click on eclipse.exe.
- Select File->New->Web Application Project.
- Type in the project Name and package name. Click Finish.
- If you don't see the project type it means your installation was not correct.

9. Create google account if you dont have one.
Go to www.gmail.com and complete the create account workflow.

10. Create google app engine application
- Go to the URL appengine.google.com/start and complete the create application workflow.
- If you were not logged in then login using the account in step 9.
- Remember the application identifier of the application.

11. Configure the project for deployment.
- Right click on the project in the eclipse tree view. Select Google->App Engine Settings...
- Change the Application ID to the id of your application. i.e. the application id in step 10.

12. Deploy the application.
- Right click on the project in the eclipse tree view. Select Google->Deploy to App Engine...
- Type in the gmail id and password in the dialog and click on the deploy button.
- Eclipse will notify you when the deployment is complete.

13. Access the application APPLICATIONIDENTIFIER.appspot.com

I could not try this for linux box. It would be great if one of you can verify it for linux.

This documentation is for eclipse 3.5. It would be great if one of you can extend it for eclipse 3.6.

I have mainly used the Chrome browser from google to test this. It would be great if one of you could verify it for Firefox, IE, Safari and Opera.

Do let me know if you face any problem.

Best Regards,
Vishal

Views: 190

Tags: App, Cloud, Computing, Engine, Google, Hands, Install, Labs, On

Comment

You need to be a member of Peepaal to add comments!

Join Peepaal

Comment by siddhi bale on October 19, 2011 at 1:02am
Sir as per ur link i downloaded and installed and now sir its working thank you so much sir .....
Comment by siddhi bale on October 19, 2011 at 12:39am
yes sir i have already installed active python 2.5 of 64bit http://www.activestate.com/activepython/downloads from dis website and even in google app engine i tried setting the path to this python directory... Sir even i tried in ubuntu in ubuntu it works but gives some errors....
Comment by Kaushik on October 17, 2011 at 9:30am

This might cause some issues. Have you tried setting up python 2.5 , 64 bit version.

http://www.python.org/getit/releases/2.5/

You should try and go for that version so that you do not face any compatibility issues with App Engine.

Comment by siddhi bale on October 16, 2011 at 9:43pm
Hello, i m working on google app engine in python, i had installed  python 2.6 and when i am installing google app engine python sdk 1.5.5 its asking for 2.5 python which i cant install because my OS is Windows7 64 bit please can u suggest some solutions........
Comment by Kaushik on December 27, 2010 at 2:42pm

Here is the set of steps to get the GWT sample working and uploaded on App Engine.

 

1. You need to download ant to be able to generate the eclipse project files. Download ant from the link below

http://ant.apache.org/bindownload.cgi

 

2.Go into the directory of the Mail sample (gwt-2.1\gwt-2.1.1\samples\Mail) and run the following command from command line.

ant "eclipse.generate"

 

3. Import the project in eclipse using File -> Import -> Existing Projects into workspace

and follow the workflow.

 

4. Right click on the Mail project and click on properties

In the Properties windows navigate to Google ->Google App Engine section.

Click on the Use App Engine checkbox and click on ok.

 

5. Since the project is missing appengine xml it will show up as an error in the problems tab within the project. Right click on the line item The appengine-web.xml is missing and click on quickfix

This will generate the app engine xml file.

 

6. Right click on the project and click on properties. Click on Google -> Google App Engine link and in the page fill in the Application ID corresponding to the application that you have created. This is the same as step 11 above and you can follow step 12 to complete the deployment.

 

 

 

 

 

 

Comment by Anoop Kunchukuttan on December 22, 2010 at 4:03pm

The approach described in the post works for Linux too, no changes required. Step 2 for installing the Java runtime is described below, so you can change to the Sun JVM.

 

To change the JRE, you can use the Ubuntu Update Manager or Synaptic Package Manager to install Sun Java 6.

(For Ubuntu 10.10 Maverick meerkat , you need to activate first the partner repository, to do that, go to System-->Administration-->Synaptic package manager then go to settings--> repositories and activate canonical Partners)

 

Once you have installed java, you need to update references in your Linux installation to point to the Sun Java installation. Following are the steps for that:

  • Open a Terminal window  
  • Run sudo update-java-alternatives -l to see the current configuration and possibilities.  

  • Run sudo update-java-alternatives -s java-6-sun  

  • Run java -version to ensure that the correct version is being called.

 

 

 

 

Comment by Kaushik on December 22, 2010 at 2:20pm

If you are facing issues with installing the plugin directly through Eclipse here is an alternate approach. After completing steps 1,2 for installing Eclipse, follow the steps below:

 

3. Install the Google Eclipse App Engine Plugin Manually:(Check the section For Eclipse 3.5)

http://code.google.com/eclipse/docs/install-from-zip.html


4. Download Google App Engine SDK for the url below
http://googleappengine.googlecode.com/files/appengine-java-sdk-1.4....
Extract in any specific location on your local drive

5. Download Google Web Toolkit SDK
http://google-web-toolkit.googlecode.com/files/gwt-2.1.1.zip
Extract in any specific location on your local drive

6. Restart Eclipse and try creating a Web Application Projects
- Double click on eclipse.exe.
- Select File->New->Web Application Project.
- Type in the project Name and package name.
- Select the checkbox for Google App Engine and click on configure SDK to point the location of sdk extracted in step 2.
- Select the checkbox for Google Web Toolkit and click on configure SDK to location of sdk extracted in step 3.
- Click Finish.
- If you do not see this menu option, select the Window menu > Reset Perspective..., click OK, then try the File  menu again.
- If you don't see the project type it means your installation was not correct.

Continue to steps 9,10,11,12,13 as above.

 

Comment by Kaushik on December 22, 2010 at 9:39am
Anoop would be great if you could post the corresponding links/urls for the Linux setup.
Comment by Anoop Kunchukuttan on December 18, 2010 at 9:11am

I have tested this on Linux (Ubuntu Maverick Meerkat) with Firefox and Eclipse 3.6, works like a breeze. No problems with this.

If you are using Linux, I suggest you download the Sun JVM and install it, rather than using gcj and OpenJDK that ships with the Linux distribution.

© 2012   Created by Kaushik.

Badges  |  Report an Issue  |  Terms of Service