Hello All, I was trying some code using the Google Data Plugin on Eclipse, it would be great if someone would throw some light on it. * Error:*
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/Maps at com.google.gdata.wireformats.AltRegistry.<init>(AltRegistry.java:118) at com.google.gdata.wireformats.AltRegistry.<init>(AltRegistry.java:100) at com.google.gdata.client.Service.<clinit>(Service.java:513) at Documents.main(Documents.java:36) Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Maps at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 4 more Code: import com.google.gdata.client.docs.DocsService; import com.google.gdata.data.docs.DocumentListEntry; import com.google.gdata.data.docs.DocumentListFeed; import com.google.gdata.util.AuthenticationException; import com.google.gdata.util.ServiceException; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.List; /** * This is a test template */ public class Documents { public static void main(String[] args) { try { // Create a new Documents service DocsService myService = new DocsService("My Application"); myService.setUserCredentials(args[0],args[1]); // Get a list of all entries URL metafeedUrl = new URL(" http://docs.google.com/feeds/documents/private/full"); System.out.println("Getting Documents entries...\n"); DocumentListFeed resultFeed = myService.getFeed(metafeedUrl, DocumentListFeed.class); List<DocumentListEntry> entries = resultFeed.getEntries(); for(int i=0; i<entries.size(); i++) { DocumentListEntry entry = entries.get(i); System.out.println("\t" + entry.getTitle().getPlainText()); } System.out.println("\nTotal Entries: "+entries.size()); } catch(AuthenticationException e) { e.printStackTrace(); } catch(MalformedURLException e) { e.printStackTrace(); } catch(ServiceException e) { e.printStackTrace(); } catch(IOException e) { e.printStackTrace(); } } } -- Thanks and Regards, Nikhil B. Bharadwaj --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---