Feb 032009

Assumes: Have IDEA v8 & GWT installed

v8 of IDEA comes with a GWT Plugin. To check you installed the plugin have a look on the Web/Java EE Technologies Plugins page of the Plugin wizard (File|Configure plugins)

Run the new project wizard and select to create a new project from scratch, ‘GWT’ The last page of the wizard allows you to select the desired technologies, choose GWT and point to your local GWT installation. This creates a new GWT facet, you can see this by opening File|Project structure & selecting modules.

Right click on the top level ‘GWT’ node in project tree, select New|Google Web Toolkit|GWT Sample application, give it a name of ‘Sample’

Open Run|Edit Configurations and select a GWT Configuration. Select the html file to open: sample.Sample/Sample.html. Set the VM parameters to -Xmx512M. otherwise you may have running out of memory issues. Run this new configuration and you see the sample GWT application:

Note: In sample.html I had to change
<script language=”javascript” src=”gwt.js”></script>
<script language=”javascript” src=”sample.Sample.nocache.js”></script>



Download SmartGWT (http://code.google.com/p/smartgwt/) and unzip to a convenient location. Create a lib directory under your GWT project and copy
smartgwt.jar here. Open File|Project structure and select Libraries, select + to add new library ‘smartgwt’ and select attach classes and attach sources to point to this smartgwt.jar

In Sample.gwt.xml, add
<inherits name=’com.smartgwt.SmartGwt’/>

Open {smartgwt}\samples\helloworld\src\com\mycompany\client\HelloWorld.java and append the onModuleLoad code to Sample.java. Rerun the application and you will see the sample SMARTGWT added.


 Posted by on February 3, 2009  Tagged with: ,

Sorry, the comment form is closed at this time.