Hi Tim, A classpath does not necessarily have to contain a .jar file. A .jar is just a convenient way to bundle up files. For example, I routinely develop code against gwt-maps by setting a directory that contains the unbundled files because I'm making changes and re-compiling the .class files.
Does this link help clear up the issue? http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html -Eric. On Fri, Sep 25, 2009 at 9:12 AM, Tim Clotworthy < [email protected]> wrote: > > Thanks Eric, > > Yes, I was able to get it to work that way. Thanks. > > While on the subject however, it seems to me that the error message I got: > [ERROR] Unable to find 'com/google/gwt/maps/GoogleMaps.gwt.xml > >> > ' on your classpath > > is really spurious, or at the very least, inaccurate. The script could not > even find the jar file. Had it found the jar file, it would have found the > gwt.xml file in the jar file. > > Is there any effort afloat to update at least this particular error > situation so that the message is able to make a distinction between a > missing jar and a missing gwt.xml file in the jar? Looking at some old posts > ( as old as 2006), this inaccurate message has been there for years. It sure > would save some developers some time and frustration I would think if the > message was more accurate. > > > Thanks again for your help. > > -----Original Message----- > From: [email protected] [mailto: > [email protected]] On Behalf Of Eric Ayers > Sent: Friday, September 25, 2009 8:22 AM > To: [email protected] > Subject: Re: Unable to find 'com/google/gwt/maps/GoogleMaps.gwt.xml Options > > > Sorry, I missed the 'ant' part. The ant build and eclipse build are > not connected. You'll need to edit build.xml and add gwt-maps.jar to > the classpath there. Did you do that? > > > On Fri, Sep 25, 2009 at 7:35 AM, thc <[email protected]> > wrote: > > > > Hi and thanks for reply. I added the gwt-maps.jar to the classpath > > under the run config, but I am getting the same error from "ant > > build". I would think the run config would apply to only to the java > > (hosted mode?) for run configuration, and I am compiling (java -> > > javascript) with "ant build". I think if anything, its that script > > that is confused?? I am grateful for help, please more suggestions > > (thanks)!! > > > > On Sep 24, 9:35 pm, Eric Ayers <[email protected]> wrote: > >> Hey thc, > >> > >> Sounds to me like you might have fixed the Java build path, but the > >> classpath for your launch config might not have been updated. Open > >> the Run Configurations... menu and make sure that gwt-maps.jar is > >> showing up in the classpath tab. > >> > >> -Eric. > >> > >> > >> > >> > >> > >> On Thu, Sep 24, 2009 at 8:07 PM, thc <[email protected]> > wrote: > >> > >> > Hello, I am adding google maps capability to an existing GWT project. > >> > I am using eclipse as the IDE. I have added the gwt-maps.jar to the > >> > project's build path in eclipse. I can tell that, from the eclipse > >> > (java) compiling perspective, that the jar is found since the editor > >> > can add the imports dynamically, etc, and recognizes and compiles the > >> > correspondings maps-related java code. > >> > >> > However, when I compile to javascript (i.e., ant build), i get the > >> > error: > >> > >> > [ERROR] Unable to find 'com/google/gwt/maps/GoogleMaps.gwt.xml > >> > ' on your classpath; could be a typo, or maybe you forgot to include > >> > a > >> > classpath > >> > >> > I have included the inherits tag in the project gwt.xml as: > >> > >> > <inherits name="com.google.gwt.maps.GoogleMaps" /> > >> > >> > and verifed that the corresponding GoogleMaps.gwt.xml file is in the > >> > proper package (com.google.gwt.maps) in the gwt-maps.jar file. > >> > >> > I am surprised that this isn't working, since this is a standard > >> > google API. What am I doing wrong? Any help is appreciated and let me > >> > know if you need more information. Thanks > >> > >> -- > >> Eric Z. Ayers > >> Google Web Toolkit, Atlanta, GA USA- Hide quoted text - > >> > >> - Show quoted text - > > > > > > > > > > > -- > Eric Z. Ayers > Google Web Toolkit, Atlanta, GA USA > > > > > > -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en -~----------~----~----~----~------~----~------~--~---
