Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Using Google Maps API(Compiler Error)
Using Google Maps API [message #780852] Thu, 19 January 2012 16:13 Go to next message
Dennis Putnam is currently offline Dennis PutnamFriend
Messages: 59
Registered: January 2012
Member
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.
Re: Using Google Maps API [message #780934 is a reply to message #780852] Fri, 20 January 2012 02:23 Go to previous message
Dennis Putnam is currently offline Dennis PutnamFriend
Messages: 59
Registered: January 2012
Member
After some research I think the problem is that Eclipse does not include the needed jar files. I downloaded the jar files from Google and figured out how to add them to my build path. I think there are a lot I don't need but I can figure out how to clean that up later. Anyway, I now find there are lots of errors in the API sources. I wonder if the versions of the sources are different. If so how do I update them with the downloaded sources? TIA.

[Updated on: Fri, 20 January 2012 08:45]

Report message to a moderator

Previous Topic:JOptionPane does not execute here--Why?
Next Topic:install eclipse on a android tablet
Goto Forum:
  


Current Time: Fri Apr 26 17:29:06 GMT 2024

Powered by FUDForum. Page generated in 0.08205 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top