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

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