线程" main"中的例外情况使用java的dropbox应用程序

时间:2014-08-31 21:14:52

标签: java eclipse jar dropbox

我正在尝试用Java创建一个简单的应用程序,使用Eclipse可以将文件从我的计算机上传到Dropbox,但每当我编译时,我都会收到此错误:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpGet
    at com.dropbox.client2.RESTUtility.streamRequest(RESTUtility.java:164)
    at com.dropbox.client2.session.WebAuthSession.setUpToken(WebAuthSession.java:218)
    at com.dropbox.client2.session.WebAuthSession.getAuthInfo(WebAuthSession.java:158)
    at com.dropbox.client2.session.WebAuthSession.getAuthInfo(WebAuthSession.java:128)
    at DropboxAuthTest.main(DropboxAuthTest.java:47)
你可以帮我解决这个问题吗? 提前谢谢。

1 个答案:

答案 0 :(得分:0)

你错过了一个图书馆。看起来像Apache HttpClient