Hi All,
I'm having trouble getting started with gwt/maps. I'm following the
instructions on
http://code.google.com/p/gwt-google-apis/wiki/GettingStartedSource to
use the source.
[I'm running on Mac OS X 5.2, using GWT 1.5]. Here are my detailed
steps:
1. Get the source:
$ mkdir /usr/local/gwt-google-apis
$ cd /usr/local/gwt-google-apis/
$ svn checkout
http://gwt-google-apis.googlecode.com/svn/trunk/ .
Everything appears to be there:
ls /usr/local/gwt-google-apis/maps/maps/src/com/google/gwt/maps/
GoogleMaps.gwt.xml client/ jsio/
2. Create the project and application as usual:
projectCreator -eclipse MapsTutorial -out MapsTutorial
applicationCreator -eclipse MapsTutorial -out MapsTutorial
com.example.google.gwt.mapstutorial.client.MapsTutorial
[At this point running MapsTutorial-shell works as usual]
3. Add /usr/local/gwt-google-apis/maps/maps/src to the classpath in
MapsTutorial-compile and MapsTutorial-shell. The contentof
MapsTutorial-shell now looks like:
#!/bin/sh
APPDIR=`dirname $0`;
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:/usr/
local/gwt-mac-1.5.0/gwt-user.jar:/usr/local/gwt-mac-1.5.0/gwt-dev-mac.
jar:/usr/local/gwt-google-apis/maps/maps/src"
com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@"
com.example.google.gwt.mapstutorial.MapsT
utorial/MapsTutorial.html;
[At this point running MapsTutorial-shell still works as usual]
4. Add the line <script src="
http://maps.google.com/maps?
file=api&v=2.x&key=???" />
at the end of MapsTutorial/src/com/example/google/gwt/mapstutorial/
MapsTutorial.gwt.xml.
[At this point running MapsTutorial-shell still works as usual]
5. Add the line <inherits name="com.google.gwt.maps.GoogleMaps" /> to
MapsTutorial/src/com/example/google/gwt/mapstutorial/
MapsTutorial.gwt.xml after all the
other <inherits...> lines.
Now attempting to run MapsTutorial-shell produces the following
exception messages in the shell:
Lading module 'com.example.google.gwt.mapstutorial.MapsTutorial'
Loading inherited module 'com.google.gwt.maps.GoogleMaps'
Loading inherited module 'com.google.gwt.maps.jsio.JSIO'
Unable to load class
'com.google.gwt.maps.jsio.rebind.JSWrapperGenerator
Failure while parsing XML
Line 17: Unexpected exception while processing element 'inherits'
Failure while parsing XML
Line 16: Unexpected exception while processing element 'inherits'
Failure while parsing XML
The desired class is certainly there:
$ ls /usr/local/gwt-google-apis/maps/maps/src/com/google/gwt/maps/jsio/
rebind/JSWrapper*
/usr/local/gwt-google-apis/maps/maps/src/com/google/gwt/maps/jsio/
rebind/JSWrapperFragmentGenerator.java
/usr/local/gwt-google-apis/maps/maps/src/com/google/gwt/maps/jsio/
rebind/JSWrapperGenerator.java
What am I missing here?
Thanks in advance,
Ken Bowen