My favorites | Sign in
Project Logo
                
Search
for
Updated Sep 09, 2007 by AlexanderLapygin
Labels: gwt, eclipse, test, Featured
Eclipse  
gwt and eclipse integration

Introduction

Step-by-step mini-turorial given below show gwt-eclipse basic integration possibility. Generally the tutorial based on material from: Google Web Toolkit Getting Started Guide.

Participated software

  • Eclipse version 3.3
  • Google Web Toolkit 1.4.10

Tutorial

  1. Create directory tst-gwt-eclipse.
  2. Go to created directory and open console window.
  3. Create project structure by command:
  4. projectCreator -eclipse tst-gwt-eclipse
  5. Add some gwt by command:
  6. applicationCreator -eclipse tst-gwt-eclipse org.tst.gwt.client.HelloWorldEclipse
  7. Import project into Eclipse.
    1. Open Eclipse window Import.Select by context menu Import.
    2. Select Import > From Existing Projects into Workspace, press Next button.
    3. In window Import > Import Projects check Select root directory option, press Browse button and select tst-gwt-eclipse directory of just created project.
    4. Press Finish and obtain the project in your current Eclipse workspace.
    5. See Warning Classpath variable JUNIT_HOME in project 'gwt-test-eclipse' is deprecated: Use the JUnit library instead. Go to project properties Java Build Paths > Libraries, remove JUNIT_HOME node, add library JUnit 3. Warning has disappeared.
  8. Launch application by Eclipse.
    1. Select Run > Open Run Dialog > Java Application > HelloWorldEclipse
    2. Press Run and see result in GWT hosted mode.

Source code

Resulting sources are available from the Subversion repository:

  • By command line (you need to have a subversion client which can be downloaded from http://www.tigris.org):
  • svn checkout http://tst-gwt.googlecode.com/svn/trunk/tst-gwt-eclipse

After that application can be launched with the HelloWorldEclipse-shell.cmd.

  • By Eclipse import (Subclipse, Eclipse plugin for Subversion, should be installed previously): open Eclipse and in context menu select Import > Checkout projects from SVN and further follow default options. Application can be launched with the Run > Open Run Dialog > Java Application > HelloWorldEclipse.

Resources

  1. Google Web Toolkit Getting Started Guide


Sign in to add a comment
Hosted by Google Code