Saturday, July 18, 2009

Configuring Eclipse SDK 3.4 to run Google GWT sample applications

Posted by Kris Gemborys


As I am spending more time developing web applications using Google GWT, I am wondering why someone would want to use any other tools for developing interactive rich internet applications. For someone like me, who knows Java and UI development principles, using GWT is a natural fit. The Google online documentation is very helpful, but is missing a few details on how to setup GWT Example projects (i.e. Showcase) in the Eclipse environment. If you are interested in configuring and running GWT Examples from your Eclipse environment this article is for you.




1) Download GWT SDK from here:




2) Download Eclipse 3.4 Ganymede from here:



After downloading Eclipse SDK unzip the content to the root folder (i.e. Windows c:\) and you can start Eclispe by executing c:\eclipse\eclipse.exe)



3) Install GWT for eclipse, the Google provides instructions here:




4) Install GWT Eclipse plugin


4.1) Start Eclispe

4.2) Navigate to Help>Software Update and select Available Software tab.

4.3) Add Google site using "Add Site" button






4.4) In the Location field enter the url retieved from the Google web site containing plugin installation instructions above (i.e. http://dl.google.com/eclipse/plugin/3.4 for Eclipse SDK 3.4)















4.5) Accept the Google licensing agreement and follow plugin installer promts.

4.6) Once plugin is downloaded and installed restart eclipse

4.7) Test your GWT and App Engine installation using the Google instructions




Once you have GWT and App Engine Eclipse plugins working, you can proceed to installing and running GWT examples directly from your Eclipse SDK




5) Unzip downloaded GWT SDK from step 1)

6) Navigate to the GWT SDK samples folder -> gwt-windows-1.6.4\samples



Installing Showcase sample as Eclipse project


6.1) Using Eclipse create a new Google Web Application Project and call it Showcase. In the package field you must enter com.google.gwt.sample.showcase





6.2) Once the Eclipst project is generated, use Windows Explorer and navigate to the <GWT SDK>\gwt-windows-1.6.4\samples folder and copy/paste the Showcase folder over the previously created Eclipse project's folder, allow Windows Explorer to overwrite all previously generated Showcase project files.

6.3) Go back to Eclipse and refresh the Showcase project.

6.4) The Showcase project should compile without errors, and you should be able to run the project in the hosted environment the same way as any other GWT project.

7) Follow the same steps to install and run other GWT SDK samples:

- DynaTable

- Hello

- Mail




If you are interested in running the latest GWT 2.0 and showcase sample, you should read the Google instructions here:



In order to connect to the Goolge GWT repository you will need to install the SVN client. I am using subeclispe plugin which you can download from here:




Follow the same steps as for the GWT plugin installation.

After pressing the "Add Site" button, you will need to update the location field with http://subclipse.tigris.org/update_1.6.x



Once subversion Eclipse plugin is installed you should use SVN perspective to connect to the GWT 2.0 project and download the latest software from here:








Good luck!

No comments:

Post a Comment