Using the Google Calendar (GData) Java APIs in NetBeans
By alexismp on avr. 30, 2006
I'd be lost without my Palm device, I've struggled many times with synchronization and wish I could master this sync process myself. So when Google announced their calendar service I felt like I needed to give it a try. Here's my simple setup to use the GData APIs in the NetBeans IDE.
First, download the GData client library from http://code.google.com/apis/gdata/gdata.zip.
It contains client APIs, documentation and source code for both Java and C#. Extract the archive to
In NetBeans, go to Tools -> Library Manager -> "New Library"
Give the new library any name (such as "GData library").
In the "Classpath" tab, select "Add JAR/Folder..." and add the following jar files:
In the "Sources" tab\*, add
$GDATA_HOME/java/srcand in the Javadoc tab, add
Dismiss the window.
Add this new library to your project (Properties->Libraries or the "Add Library" on the project's Libraries node),
and start coding with code completion, online Javadoc (very useful with any new API) and source debug\* :
More info on this pretty exiting API here: http://code.google.com/apis/gdata/index.html
Make also sure all of this uses Java 5 (I've had trouble with Java 6 for some reason with odd server-side JNI messages...) and that you are familiar with the
xsd:dataTimeformats (hint: use XMLGregorianCalendar and pay attention to timezones!).
\* : Note having the sources defined in the library will only let you debug the GData classes if you recompile them with
In that case simply use the
build.xmlANT file that's provided to run the default target and change the various
Be careful not to use the
cleantarget, it deletes the