Sunday, December 13, 2009

Import Gwt Sample Projects into Eclipse

Many sample projects comes with GWT SDK. Many programmers don't know how to import these sample projects into Eclipse. Here are the easy steps to import such projects into eclipse.
Lets take example of Mail projects which comes with GWT SDK.
  1. cd <download dir>/gwt-2.0.0/samples/Mail
  2. run 'ant eclipse.generate' command in the directory
  3. In eclipse go to the File menu and choose: File -> Import -> Existing Projects into Workspace and select Mail directory. Click on finish button.
  4. To launch your web app in GWT development mode, go to the Run menu and choose: Run -> Open Debug Dialog. Under Java Application, you should find a launch configuration named "Mail". Select and click "Debug".
Please let me know if you have any problems.

No comments: