Pages

Friday, May 21, 2010

Another JAR File required for GData API

While trying to run a normal Java Project involving the GData API, and specifically a Google Documents API, I found that there is one more JAR file which is required and which is not mentioned in the Tutorial Page by Google. 

The Error which is most commonly faced while running the program is Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/Maps 

Now to resolve the Error import google-collect-1.0-rc1.jar, which is in the deps folder of the Google Data Java Source you downloaded. Apart from this jar file there is one more file in the same folder, that has to be also added. (jsr305)





No comments:

Post a Comment