Techie Baba

Wednesday, December 05, 2007

Google Web Toolkit (GWT) & Eclipse

Step 1) Create Eclipse Project:
C:\gwt-windows-1.4.60>projectCreator -eclipse ShankyDemoPrj -out myCode/ShankyDemoDir

Step 2) Create GWT Code Sample:
C:\gwt-windows-1.4.60>applicationCreator -eclipse ShankyDemoPrj -out myCode/ShankyDemoDir com.shankydemo.client.GWTDemo

Step 3) Setup Internationalization:
C:\gwt-windows-1.4.60>i18nCreator -eclipse ShankyDemoPrj -out myCode/ShankyDemoDir com.shankydemo.client.GWTDemoConstants
Fig 1: Shows output at Command Line after running the above commands.

To create/update the Java constant file run the newly created "-i18n.cmd" in the root folder and it would generate/update the Java constant file.

Step 4) Import the project created to Eclipse (as shown in figures below):


Fig 2: Import Menu in Eclipse.


Fig 3: Select "Import Existing Project into Workspace".


Fig 4: Click Finish and Project is imported into Eclipse's Workspace.


If you want to add a specific CSS file into project:
Add following into the .gwt.xml file:

within the tags.




This article has moved to my new BLOG.

Labels: , , , , , , ,

0 Comments:

Post a Comment

<< Home