CK

Projects‎ > ‎Overview‎ > ‎

Google Data APIs with Java

This page contains information about using the Java Google APIs to connect to Google Contacts.

See http://code.google.com/apis/contacts and  http://code.google.com/apis/gdata/articles/java_client_lib.html.

 The Eclipse instructions at  http://code.google.com/apis/gdata/articles/eclipse.html  were written for someone using Linux (or some other *nix). I put my  gdata  folder into  C:\Documents and Settings\Christopher Keith\My Documents\Software\05 eclipse-jee-ganymede-SR2-win32\eclipse. When I start working on a real project I'll put it someplace else where the needs of source code control and upgrading versions of Eclipse don't conflict.

These instructions also list an external dependency for Sun's Java Mail  mail.jar  at a Sun site. I was unable to find that jar, but did find  mailapi.jar, which I will use until something breaks.

After setting up all the dependencies, and typing in the sample code (as there wasn't a link to that exact code), I hit a run time problem because of at least one missing class. Searching for a fix I found this:

http://groups.google.com/group/google-appengine-java/browse_thread/thread/5ff35040bd615d73/046cf2555f7ade67?lnk=raot&pli=1

Used TortioseSVN to get the latest trunk, and copied the jars from \dep into \third_party ("Save as Link" doesn't work, duh...)

... and it works...