Ich verwende grails und google youtube api (https://developers.google.com/youtube/2.0/developers_guide_java#AuthSub_for_Web_Applications), um Details zu Videos abzurufen, die von Nutzern hochgeladen wurden. Aber sobald ich versuche YouTubeService Klasse zu initialisieren, wie:Die Klasse konnte nicht initialisiert werden com.google.gdata.client.youtube.YouTubeService
String emailID="[email protected]"//this is the id with which i registered for developer key
String DeveloperKey="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" //developer key given by google
YouTubeService service=new YouTubeService(emailID,DeveloperKey)
//I am done using appName,clientId(given by google) as the first parameter to the
YouTubeService but nothing helped
Es gibt mir die folgende Fehlermeldung:
Class java.lang.ClassNotFoundException
Message com.google.gdata.data.media.MediaMultipart
//I can see this MediaMultipart file in the said destination in one of the included jars.
Originally it was complaining about com.google.collections.common.Maps but then i
added google.collections.1-rc.jar. I also tried adding guava.jar as read from various
forums but that could not solve my problem
Wenn ich die Seite neu laden, die Fehler Änderungen
Class java.lang.NoClassDefFoundError
Message Could not initialize class com.google.gdata.client.youtube.YouTubeService
Ich habe alle erforderlichen Gläser eingeschlossen (http://code.google.com/p/gdata-java-client/downloads/list), aber dieses Problem wird nicht gelöst. Bitte helfen Sie.
Ich habe versucht, aber selbst dann funktioniert es nicht. – user1304683