For those of you who use NetBeans with the GWT4NB, here are some helpful tips to get started with SmartGWT. This applies to Glassfish, I don't know how it configures for Tomcat.
First when you try to run a SmartGWT application (as with ExtGWT) you will run out of java heap space when you try to compile. To fix this, modify build-gwt.xml as follows:
In target "-post-compile", change:
to:
and add the following child element to that same element:
There are also two places that you see
add -Xmx512M to that list of arguments.
Now you will be able to run it, but none of the images in the SmartGWT.jar will show up. To get those working, look at your gwt.properties file and change
to
Look at the auto generated HTML file and make sure you change
to
Everything should work perfectly. Note that the memory changes you made to build-gwt.xml will be overwritten each time you open NetBeans. There is a way to make the changes permanent, but you can google how to do that yourself.
I hope this helps someone. It would have saved me a good bit of time!
First when you try to run a SmartGWT application (as with ExtGWT) you will run out of java heap space when you try to compile. To fix this, modify build-gwt.xml as follows:
In target "-post-compile", change:
Code:
<java classpath="${javac.classpath}:${src.dir}" failonerror="true" classname="com.google.gwt.dev.GWTCompiler" fork="true">
Code:
<java classpath="${javac.classpath}:${src.dir}" failonerror="true" classname="com.google.gwt.dev.GWTCompiler" fork="true" [b]maxmemory="512M"[/b]>
Code:
<jvmarg value="-Xmx512M"/>
Code:
name="${gwtshell.jvmargs.base}" value="-Xdebug . . ."
Now you will be able to run it, but none of the images in the SmartGWT.jar will show up. To get those working, look at your gwt.properties file and change
Code:
gwt.output.dir=/com.test.Main
Code:
gwt.output.dir=./
Code:
<script language="javascript" src="com.test.Main/com.test.Main.nocache.js"></script>
Code:
<script language="javascript" src="com.test.Main.nocache.js"></script>
I hope this helps someone. It would have saved me a good bit of time!
Comment