準備執行環境
官網文件上說明需準備以下環境及.jar
檔,Servlet只有二個sample會用到,Ant是為 build samples 做準備- JDK (Java Development Kit) version 1.5+
- Apache Ant version 1.7+
- mail.jar in Sun's JavaMail API 1.4+
- activation.jar in Sun's JavaBeansActivationFramework. This is only required for media specific APIs including Document List Data API, Picasa Web Album API, and YouTube Data API.
- servlet.jar in Sun's Servlet API version 2.3+. This is required only if executing code samples in 'sample.authsub' or 'sample.gbase.recipe' packages.
下載Google Data Client Library
- 下載Google Data Client Library的client library (
gdata-src.java-1.x.x.java.zip
) 和 samples file (gdata-samples.java-1.x.x.java.zip
),下載的版本為1.45.0,將二個zip file解壓縮。