Found in GWT Release:
gwt-maps.jar
Detailed description:
I used Eclipse as my IDE.I am trying to apply the knowledge I learned from
reading your book to this example: http://code.google.com/docreader/#p(gwt-
google-apis)s(gwt-google-apis)t(MapsGettingStarted)I was succesful in
implementing everything (which is basic) up to the section "Creating a
small project using the google maps api. Initially I had problems before
that, the lines that start with import weren't being recognized in
Eclipse. However, I fix that problem by executing the following in Eclipse
after I extracted gwt-maps.jar into a directory: Window > Preferences. In
the left part of the dialog box that comes up, I selected Java, Build
Path, and User Libraries. This shows a list of the installed user
libraries similar to the next figure. I click on the new button and
created a name for the library. Then I right click on my project file in
eclipse and added the library to the file.Well I used these instructions
as an example to create and the add the library to my eclipse
file:http://www.iro.umontreal.ca/~simardr/ssj/eclipse.htmlNow back to the
application, the tutorial mentions to use these commands in the command
prompt in windows when starting to create the application which I found
simple except for some weird lines: $ projectCreator -eclipse
MapsTutorial -out MapsTutorial \
-addToClassPath /usr/local/gwt-maps/gwt-maps.jar $
applicationCreator -eclipse MapsTutorial -out MapsTutorial \
-addToClassPath /usr/local/gwt-maps/gwt-maps.jar \
-addModule com.google.gwt.maps.GoogleMaps \
com.example.google.gwt.mapstutorial.client.MapsTutorial
However, the $ , -addModule and the -addToClassPath was strange to me, and
I didn't read it anywhere in your book or on google, so instead I used the
following:projectCreator -eclipse MapsTutorial -out MapsTutorial
applicationCreator -eclipse MapsTutorial -out MapsTutorial
com.example.google.gwt.mapstutorial.client.MapsTutorial and then imported
the project into eclipse with no problem as well as added the library as
mentioned above using the gwt-map.jar files.Now the problem I had is after
following the project example I needed to do the following:
Add an <inherits> entry to pull in the GWT Google APIs module for Google
Maps.
Add a reference to the Google Maps JavaScript API.
Now I did everything like they ask, except I get an error concerning the
inherits entry.It does't find or can't locate
com.google.gwt.maps.GoogleMaps. But I believe the issue came before when
I ignore these two things because I didn't know what they were:-addModule-
addToClassPath I am using Eclipse and I am not experience with all of
Eclipse capabilities but I think the problem lies with the fact that I
need to do something or something needs to be added to the hosted
classpath but I wasn't sure how to do that. I am trying to get the results
to look like the MapsTutorial example provided by this
link:http://code.google.com/docreader/#p(gwt-google-apis)s(gwt-google-apis)
t(MapsGettingStarted)
Workaround if you have one:
Links to the relevant GWT Developer Forum posts:
http://code.google.com/docreader/#p(gwt-google-apis)s(gwt-google-apis)t
(MapsGettingStarted)
Originally reported on Google Code with ID 2765
Reported by
SJCRSBBB
on 2008-08-16 19:57:14