These apis are from the Google Maps API for GWT.  The Java source is
used to build a JavaScript that makes the same calls to the Maps API
as if you wrote the code by hand, but they will not work outside of
the GWT hosted mode browser or after compiled, in a web browser.

Regards,
-Eric.

On Fri, Aug 28, 2009 at 10:04 AM,
[email protected]<[email protected]> wrote:
>
> On Aug 28, 5:08 am, "[email protected]"
> <[email protected]> wrote:
>> Hi,
>> I am using Eclipse and Java for a projekt, the task of the application
>> is the distance calculation between two locations. The project should
>> realized as an desktop application, running in the background.
>
> The Google Maps API (the topic of this group) is a web application and
> the terms of use do not allow it to be used that way.
>
>> I found
>> a lot of tutorials with distance calculations, but only for web
>> implementation (with JSP, Javsascript an stuff like that).
>>
>> I started like this:
>>
>> public static void main(String[] args) {
>>         try {
>>                 final LatLng start = LatLng.newInstance(51.5087, 9.9756);
>>                 System.out.println(start.getLatitude() + " / " + 
>> start.getLatitude
>> ());
>>                 final LatLng target = LatLng.newInstance(52.5087, 10.9756);
>>                 double d = target.distanceFrom(start);
>>         } catch (Exception e) {
>>                 e.printStackTrace();
>>         }
>>
>> }
>>
>> Ending up with an exception:
>>
>> Exception in thread "main" java.lang.UnsatisfiedLinkError:
>> com.google.gwt.maps.client.geom.LatLng.newInstance(DD)Lcom/google/gwt/
>> maps/client/geom/LatLng;
>>         at com.google.gwt.maps.client.geom.LatLng.newInstance(Native Method)
>>         at Start.main(Start.java:15)
>>
>> I added two JAR-Files to the buildpath: gwt-maps.jar and gwt-user.jar.
>> seems like something goes wrong with the buildpath.
>>
>> Could anybody help? Thanking you in advance!
>>
>> Stephan
> >
>



-- 
Google Code Jam 2009
http://code.google.com/codejam

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to