IntroductionStep-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- Create directory tst-gwt-eclipse.
- Go to created directory and open console window.
- Create project structure by command:
projectCreator -eclipse tst-gwt-eclipse - Add some gwt by command:
applicationCreator -eclipse tst-gwt-eclipse org.tst.gwt.client.HelloWorldEclipse - Import project into Eclipse.
- Open Eclipse window Import.Select by context menu Import.
- Select Import > From Existing Projects into Workspace, press Next button.
- In window Import > Import Projects check Select root directory option, press Browse button and select tst-gwt-eclipse directory of just created project.
- Press Finish and obtain the project in your current Eclipse workspace.
- 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.
- Launch application by Eclipse.
- Select Run > Open Run Dialog > Java Application > HelloWorldEclipse
- Press Run and see result in GWT hosted mode.
Source codeResulting sources are available from the Subversion repository: 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- Google Web Toolkit Getting Started Guide
|