0
我在Ubuntu上使用Google App Engine SDK 1.8.5和Eclipse 3.8。無法將庫導入Google App Engine項目
我想將Cloud Storage服務添加到我的應用程序,因此我下載了guava-gwt-15.0.jar
和appengine-gcs-client-0.3.jar
,並將它們放在我的應用程序/war/WEB-INF/lib/
文件夾中。我還將這些jar添加到Eclipse中的構建路徑。
當我在開發模式下啓動我的應用程序時,它運行良好,至少直到我嘗試訪問與GCS庫相關的頁面。當我這樣做時,出現以下錯誤:
java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
at com.google.appengine.tools.cloudstorage.GcsServiceImpl.<init>(GcsServiceImpl.java:35)
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:32)
... etc
我清理了我的項目並重新啓動了Eclipse多次,但問題仍然存在。該怎麼辦?