Like the error message says, calling GWT.create() only makes sense in
code runs in the browser. A lot of code in GWT ends up calling
GWT.create() -- this is how the compiler knows how to send the right
code to a given browser. So it sounds like you want to rethink what
parts of your code are running in a JVM, and which are in a browser.
For a sense of what that means in practice, you could take a look at
the docs on the topic:
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideClientSide
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideDeferredBinding
Hope this helps!
--
Alex Rudnick
swe, gwt, atl