12/01/26 13:27:18.24
googleカレンダーアプリのサンプル
URLリンク(labs.techfirm.co.jp)
を動かすことに成功したのですが
その後に、elispe(インディゴver)で極めて単純なサーブレットを構築したところ
public class CalendarTestServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Hello, world");
CalendarService myService = new CalendarService("exampleCo-exampleApp-1.0");
}
}
java.lang.NoClassDefFoundError: com/google/gdata/client/calendar/CalendarService
が出てしまいます。
myServiceを定義するだけで、初期化しない場合はエラーコードは吐かないようです
ビルドパスは先のリンクと変えてないのですが、サーブレットで使う場合は問題があるのでしょうか
ちなみにJSPでCalendarServiceを初期化した場合も同じでした。