gwt-google-apis (gogle gears) help

25 views
Skip to first unread message

SalvadorDiaz

unread,
Jun 26, 2007, 8:52:48 AM6/26/07
to Google Web Toolkit
Hi,
I've been trying to get started using the google gears api for gwt, so
far with no success. Let me elaborate:
- I created my eclipse application and project with the createProject
and createApplication scripts (ok, so far nothing new)
- I then edited the .classpath file to include the gwt-google-apis
library (<classpathentry kind="lib" path="C:/workspace/gwt-google-
apis-1.0.0/gwt-google-apis.jar"/>)
- I then edited my main class (the one implementing EntryPoint) to
instanciate a LocalServer and made the relevant imports, the class
looks like this:

public class GwtGearsTest implements EntryPoint {
public void onModuleLoad() {
try {
final LocalServer localServer = new LocalServer();
} catch (GearsException e) {
e.printStackTrace();
}
}
}

Eclipse says everything's fine, but when I try to launch my
application, the GWT Development shell tells me that the imports (from
gwt-google-apis) cannot be resolved, has anyone had this issue? And
how do you resolve it? At first I thought it was because I was trying
this on a Mac ("GWT's hosted browser only supports Gears on the
Windows platform"), but then I rebooted into windows to find the same
problem.

Any help would be really appreciated. Thanks alot.

krispy

unread,
Jun 26, 2007, 9:33:03 AM6/26/07
to Google Web Toolkit
Did you add the following to your .gwt.xml file?

<inherits name='com.google.gwt.gears.Gears'/>

Otherwise, the GWT compiler won't know where the Gears stuff is and
would probably not be able to resolve your imports. HTH!

-krispy

SalvadorDiaz

unread,
Jun 26, 2007, 9:52:43 AM6/26/07
to Google Web Toolkit
That's it! Silly me, always forgetting that gwt.xml file stuff :)

Thanks krispy.

Reply all
Reply to author
Forward
0 new messages