# install smart gwt wget http://smartgwt.googlecode.com/files/smartgwt-2.4.zip -P /tmp sudo unzip /tmp/smartgwt-2.4.zip -d /usr/share/ sudo ln -sf /usr/share/smartgwt-2.4/ /usr/share/smartgwt sudo ln -sf /usr/share/smartgwt/smartgwt.jar /usr/share/java/ sudo ln -sf /usr/share/smartgwt/smartgwt-skins.jar /usr/share/java/ # restart tomcat server sudo /etc/init.d/tomcat6 restart # create default GWT Project File > New > Web Application Project Project name: Smart Package: smart [ Finish ] # add smartGWT Smart > smart > <PROJECT_NAME>.gwt.xml add to module section: <inherits name='com.smartgwt.SmartGwt'/> Smart > war > <PROJECT_NAME>.html add to head section BEVORE first script section <script>var isomorphicDir = "smart/sc/"</script> # add smartgwt libs Project > Properties Java Build Path > Libraries Add External Jar /usr/share/smartgwt/smartgwt.jar [ OK ] Smart > src > smart.client > Smart.java add import com.smartgwt.client.util.SC; import com.smartgwt.client.widgets.IButton; import com.smartgwt.client.widgets.events.ClickEvent; import com.smartgwt.client.widgets.events.ClickHandler; uncoment //import com.google.gwt.event.dom.client.ClickEvent; //import com.google.gwt.event.dom.client.ClickHandler; Smart > src > smart.client > Smart.java add to onModuleLoad function IButton button = new IButton("Click me"); button.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { SC.say("Hello GWT"); } }); RootPanel.get().add(button); uncoment other source in onModuleLoad function uncoment all other functions in Smart.java clean up HTML in Smart > war > Smart.html # Links http://www.smartclient.com/smartgwt/showcase/ - showcase http://code.google.com/p/smartgwt/ - SmartGWT homepage http://localhost:8888/Smart.html?gwt.codesvr=127.0.1.1:9997 - Development local URL http://code.google.com/p/smartgwt/source/browse/trunk/samples/showcase/src/com/smartgwt/sample/showcase/client/data/CountryRecord.java http://jellebeuselinck.wordpress.com/2009/03/05/setting-up-smartgwt/