can't inherit gwt maps module

207 views
Skip to first unread message

Brady

unread,
Nov 10, 2009, 4:05:50 PM11/10/09
to Google Web Toolkit
I've been trying to build a simple GWT app using GWT-maps.jar, like
the one at: http://gwttutorials.com/2009/07/28/setting-up-google-maps-with-gwt/

Despite following the instructions, I still get error messages like
this one:
No source code is available for type
com.google.gwt.maps.client.geom.LatLng; did you forget to inherit a
required module?

I cannot find anything wrong with my application.gwt.xml file, which
includes the following lines:

<inherits name='com.google.gwt.maps.GoogleMaps'/>
<script src='http://maps.google.com/maps?gwt=1&amp;file=api&amp;v=2'/
>

I have also made sure that the gwt-maps.jar is on my build path.

I would appreciate any guidance about where to look for problems.
Thanks.

Eric Ayers

unread,
Nov 12, 2009, 9:26:15 AM11/12/09
to google-we...@googlegroups.com
Official getting started page:

http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=MapsGettingStarted

If you are not using the Google Plugin for eclipse, you may have to carefully setup your run configuration.



--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.





--
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

Brady

unread,
Nov 12, 2009, 12:01:47 PM11/12/09
to Google Web Toolkit
I am using the google plugin for eclipse. The getting started page
that you referenced, itself references the GWT startup instructions
for GWT 1.5. The projectCreator and applicationCreator utilities seem
to be no longer a part of the newer versions. What steps should
replace the ones that reference those scripts?


On Nov 12, 7:26 am, Eric Ayers <zun...@google.com> wrote:
> Official getting started page:
>
> http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis...
>
> If you are not using the Google Plugin for eclipse, you may have to
> carefully setup your run configuration.
>
>
>
> On Tue, Nov 10, 2009 at 4:05 PM, Brady <aguth...@gmail.com> wrote:
> > I've been trying to build a simple GWT app using GWT-maps.jar, like
> > the one at:
> >http://gwttutorials.com/2009/07/28/setting-up-google-maps-with-gwt/
>
> > Despite following the instructions, I still get error messages like
> > this one:
> > No source code is available for type
> > com.google.gwt.maps.client.geom.LatLng; did you forget to inherit a
> > required module?
>
> > I cannot find anything wrong with my application.gwt.xml file, which
> > includes the following lines:
>
> >        <inherits name='com.google.gwt.maps.GoogleMaps'/>
> >        <script src='
> >http://maps.google.com/maps?gwt=1&file=api&v=2'/
>
> > I have also made sure that the gwt-maps.jar is on my build path.
>
> > I would appreciate any guidance about where to look for problems.
> > Thanks.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .

Brady

unread,
Nov 12, 2009, 12:27:32 PM11/12/09
to Google Web Toolkit
I am using the google plugin for eclipse. The getting started page
that you referenced, itself references the GWT startup instructions
for GWT 1.5. The projectCreator and applicationCreator utilities seem
to be no longer a part of the newer versions. What steps should
replace the ones that reference those scripts?


On Nov 12, 7:26 am, Eric Ayers <zun...@google.com> wrote:
> Official getting started page:
>
> http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis...
>
> If you are not using the Google Plugin for eclipse, you may have to
> carefully setup your run configuration.
>
>
>
> On Tue, Nov 10, 2009 at 4:05 PM, Brady <aguth...@gmail.com> wrote:
> > I've been trying to build a simple GWT app using GWT-maps.jar, like
> > the one at:
> >http://gwttutorials.com/2009/07/28/setting-up-google-maps-with-gwt/
>
> > Despite following the instructions, I still get error messages like
> > this one:
> > No source code is available for type
> > com.google.gwt.maps.client.geom.LatLng; did you forget to inherit a
> > required module?
>
> > I cannot find anything wrong with my application.gwt.xml file, which
> > includes the following lines:
>
> >        <inherits name='com.google.gwt.maps.GoogleMaps'/>
> >        <script src='
> >http://maps.google.com/maps?gwt=1&file=api&v=2'/
>
> > I have also made sure that the gwt-maps.jar is on my build path.
>
> > I would appreciate any guidance about where to look for problems.
> > Thanks.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .

Eric Ayers

unread,
Nov 13, 2009, 10:21:02 AM11/13/09
to google-we...@googlegroups.com
I think just just need to make sure that gwt-maps.jar is on the classpath for the project.  If you created a Web Application type of launch config, it should be picked up appropriately.  

To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.


Stephen Walsh

unread,
Nov 13, 2009, 3:34:29 PM11/13/09
to google-we...@googlegroups.com
Brady,
 
If you right-click on your project and select "Properties" you can add an external JAR file.  Or better yet, create a new plain folder and put all of your jar files in there.  Then you can reference the library.  I'm at work and can't send you a screen shot of my setup, but let me know if you need any other help on how to make that happen.  I had the same trouble trying to include the AJAX search api for GWT.

To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.





--
Stephen Walsh

Stephen Walsh

unread,
Nov 13, 2009, 8:14:04 PM11/13/09
to google-we...@googlegroups.com
?ui=2&view=att&th=124f03f8d7f16d84&attid=0.1&disp=attd&realattid=ii_124f03f8d7f16d84&zw  You can build out a plain project like this.
?ui=2&view=att&th=124f03fa2c8235e6&attid=0.1&disp=attd&realattid=ii_124f03fa2c8235e6&zw  Then use the add JARs link from the properties window to add your library files. 

Hope that helps you.
Stephen Walsh
project_list.JPG
properties window.JPG

Brady

unread,
Nov 17, 2009, 11:35:29 AM11/17/09
to Google Web Toolkit
The gwt-maps jar is already on my classpath.



On Nov 13, 6:14 pm, Stephen Walsh <stephenwalsh....@gmail.com> wrote:
> [image:
> ?ui=2&view=att&th=124f03f8d7f16d84&attid=0.1&disp=attd&realattid=ii_124f03f8d7f16d84&zw]
>  You
> can build out a plain project like this.
> [image:
> ?ui=2&view=att&th=124f03fa2c8235e6&attid=0.1&disp=attd&realattid=ii_124f03fa2c8235e6&zw]
>  Then
> use the add JARs link from the properties window to add your library files.
>
> Hope that helps you.
> Stephen Walsh
>
> On Fri, Nov 13, 2009 at 14:34, Stephen Walsh <stephenwalsh....@gmail.com>wrote:
>
> > Brady,
>
> > If you right-click on your project and select "Properties" you can add an
> > external JAR file.  Or better yet, create a new plain folder and put all of
> > your jar files in there.  Then you can reference the library.  I'm at work
> > and can't send you a screen shot of my setup, but let me know if you need
> > any other help on how to make that happen.  I had the same trouble trying to
> > include the AJAX search api for GWT.
>
> >> <google-web-toolkit%2Bunsu...@googlegroups.com<google-web-toolkit%252Buns...@googlegroups.com>
>
> >>  > > .
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/google-web-toolkit?hl=.
>
> >> > --
> >> > Eric Z. Ayers
> >> > Google Web Toolkit, Atlanta, GA USA
>
> >> --
>
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-we...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=.
>
> > --
> > Stephen Walsh
>
>
>
>  project_list.JPG
> 24KViewDownload
>
>  properties window.JPG
> 82KViewDownload

Stephen Walsh

unread,
Nov 20, 2009, 6:38:22 PM11/20/09
to google-we...@googlegroups.com
What version of Eclipse are you using?  I just tried to run the tutorial code that you mentioned before and had no trouble.  I did have to click on my side bar in eclipse and import the below files:

package com.stephenlwalsh.mapstest.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.maps.client.InfoWindowContent;
import com.google.gwt.maps.client.MapWidget;
import com.google.gwt.maps.client.control.LargeMapControl3D;
import com.google.gwt.maps.client.geom.LatLng;
import com.google.gwt.maps.client.overlay.Marker;
import com.google.gwt.user.client.ui.RootPanel;

This will go just below the first line of your code.  Give that a try and see if it works.

Stephen Walsh


To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages