2013-06-24 18 views
0

我仍然無法獲得box-api hello world program的工作。我得到這個錯誤:我從哪裏得到缺失的資源?

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/NotImplementedException 
    at TestProgram.getAuthenticatedClient(TestProgram.java:47) 
    at TestProgram.main(TestProgram.java:35) 
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.NotImplementedException 
    ... 

然後我去了Apache Commons Lang Home和下載,併成立自己的事情。

現在,我得到

Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper 
    at com.box.boxjavalibv2.jacksonparser.BoxResourceHub.<init>(BoxResourceHub.java:28) 
    at com.box.boxjavalibv2.BoxClient.createResourceHub(BoxClient.java:345) 
    at com.box.boxjavalibv2.BoxClient.<init>(BoxClient.java:65) 
    ... 

,我不知道如何來滿足這種依賴性。我也懷疑,即使我能找到這個,也會有另一個,另一個,另一個。手動導入它們似乎並不現實。

我打算如何獲取盒API的缺失依賴關係?

+0

您正在使用哪種IDE? –

+0

來自[Apache Commons Lang](http://commons.apache.org/proper/commons-lang/)? –

+0

@LuiggiMendoza我正在使用eclipse。 – AJMansfield

回答

2

SDK附帶了您應該需要的所有依賴關係。您可以在SDK的the libs directory中找到它們。

將所有這些jar添加到您的Eclipse構建路徑,它應該可以工作。