使用SocialLib项目使用twitter集成。但事情正在不断发展
java.lang.NoClassDefFoundError: oauth.signpost.commonshttp.CommonsHttpOAuthConsumer
在
行httpOauthConsumer = new CommonsHttpOAuthConsumer(consumerKey, consumerSecret);
我的导入是:
import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;
import oauth.signpost.commonshttp.CommonsHttpOAuthProvider;
import oauth.signpost.exception.OAuthCommunicationException;
import oauth.signpost.exception.OAuthExpectationFailedException;
import oauth.signpost.exception.OAuthMessageSignerException;
import oauth.signpost.exception.OAuthNotAuthorizedException;
以及我使用和下载的罐子:http://code.google.com/p/oauth-signpost/downloads/list
如何重新开始?
汉克斯
答案 0 :(得分:2)
以下是jarlibrary:http://code.google.com/p/oauth-signpost/downloads/detail?name=signpost-commonshttp4-1.2.1.1.jar&can=2&q=您应该将其作为外部jar添加到项目中。