google data api for youtube
Posted
by user93796
on Stack Overflow
See other posts from Stack Overflow
or by user93796
Published on 2009-08-11T08:24:53Z
Indexed on
2010/05/12
9:14 UTC
Read the original article
Hit count: 330
i am trying to run the sample program which comes with google data api.I am geting a run time error at following line
YouTubeService myService = new YouTubeService("gdataSample-YouTube-1");
erroe is as follows :
run: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/Maps at com.google.gdata.wireformats.AltRegistry.(AltRegistry.java:118) at com.google.gdata.wireformats.AltRegistry.(AltRegistry.java:100) at com.google.gdata.client.Service.(Service.java:532) at YouTubeReadonlyClient.main(YouTubeReadonlyClient.java:713) 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:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 4 more Java Result: 1 BUILD SUCCESSFUL (total time: 0 seconds)
I tried both google data api 1.35.0 and 1.35.1 versions and i am geting the same error in both
© Stack Overflow or respective owner