2012-04-12 3 views
0

사용자가 업로드 한 비디오에 대한 세부 정보를 가져 오기 위해 grails 및 google youtube api (https://developers.google.com/youtube/2.0/developers_guide_java#AuthSub_for_Web_Applications)를 사용하고 있습니다. 그것은 나에게 다음과 같은 오류를 제공클래스 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 

:하지만 최대한 빨리하려고으로 YouTubeService 클래스를 초기화

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 

나는 페이지,

Class java.lang.NoClassDefFoundError 
Message Could not initialize class com.google.gdata.client.youtube.YouTubeService 

에 오류 변경을 다시로드하는 경우 필요한 모든 병 (http://code.google.com/p/gdata-java-client/downloads/list)을 포함 시켰지만이 문제는 해결되지 않습니다. 도와주세요.

답변

0

gdata-java-client에 필요한 javax.mailcom.google.guava 종속성을 추가하십시오.

+0

시도해 보았지만 작동하지 않습니다. – user1304683

관련 문제