Wednesday, March 11, 2009

How to run the BlogEditor Example

Here are the instructions for running the Blog editor example from the GWT text:

  • Create a folder on your C: drive (or equivalent) called: C:\BlogEditor. This will be used as a temporary working area to create your application.
  • Create a default GWT application. Open a command window in Windows (Start Run and type cmd).
  • Create the GWT application by using the projectCreator and applicationCreator command line tools provided in the GWT download. The commands can be executed as follows:






  • This will create all necessary files - GWT and Eclipse.
  • Run the application from the command window by typing blogeditor-shell. When you run the application you will see the default GWT page.
  • Import the created project into Eclipse. How?
  • Select File Import in Eclipse.
  • Expand the General tree and then select Existing Projects into Workspace. Click Browse to select the C:\BlogEditor root folder (or whatever location you have chosen). Select the project and ensure that the Copy projects into workspace option is set. This will take a copy of the BlogEditor project and include it in the Eclipse designated workspace. If you uncheck this option the project will be moved from its original location and included in the workspace.
  • Click the Finish button and the project will be loaded into the specified workspace in Eclipse.
  • Now import the contents of the /src folder from the example blogeditor application into your newly created application in Eclipse. How?
  • Right-click on the /src folder in Eclipse and select Import.
  • Expand the General folder and select File System.
  • Click Next and browse to the location of the /src folder you want to import into the project.
  • Click Finish and the files will be imported (you may be asked to confirm the overwriting of existing files with the same name).
  • You can execute the application in Eclipse.

No comments: