I am trying to use the builtin Google Maps API but cannot get past a simple compile error. The line producing the error is:
MapsService svc=new MapsService("DAP-EventCheck-1.0");
Eclipse says there is an error when I run it but does not indicate what or where and nothing is flagged in the editor. I get this error if I launch anyway:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at com.google.gdata.util.VersionRegistry.ensureRegistry(VersionRegistry.java:88)
at com.google.gdata.client.Service.initServiceVersion(Service.java:458)
at com.google.gdata.client.Service.<clinit>(Service.java:147)
at KCBSEvents.eventClass.getDistance(KCBSEvents.java:85)
at KCBSEvents.KCBSEvents.main(KCBSEvents.java:45)
java:85 is the line above. Did I perhaps not import something I need? Here is what I imported:
import com.google.gdata.util.*;
import com.google.gdata.client.*;
import com.google.gdata.client.maps.*;
import com.google.gdata.data.*;
import com.google.gdata.data.maps.*;
Can someone help me figure this out? TIA.