Hi.
When I run the example code from
http://code.google.com/p/ga-api-java-samples/source/browse/trunk/src/v1/AccountFeedExample.java
I get the following 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:512)
at AccountFeedExample.main(AccountFeedExample.java:40)
Caused by: java.lang.ClassNotFoundException:
com.google.common.collect.Maps
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
I've added all the jars, as pointed out in
http://code.google.com/intl/es/apis/analytics/docs/gdata/1.0/gdataJava.html#ClientLogin
Thank you for your help
On May 5, 6:23 am, Nick wrote:
> Hi,
>
> ForJavaall our client libraries are bundled with the GData core
> library which you can download the latest version here :
http://code.google.com/p/gdata-java-client/downloads/list
> Once downloaded, you need to include all the analytics specific jars
> and core libraries in your class path.
> Finally you can use one of our examples to see how to get data using
> these libraries :
http://code.google.com/p/ga-api-java-samples/source/browse/trunk/src/...
>
> I hope this helps get you started,
> -Nick
>
> On May 4, 12:59 pm, MrZizou wrote:
>
> > Hi all,
> > I am a little confused trying to run the new API withJava. Do I need