title: How to use Google calendar from a Java Application?
body: <p>I want to sent SMS from Google calendar with a Java application. I create a Java Desktop Application and add libraries <code>gdata-calendar-2.0.jar</code>, <code>gdata-client-1.0.jar</code> into Libraries.</p>
  
  <p>After that, I create button and paste this code in <code>jButton1ActionPerformed</code>:</p>
  
  <pre><code>CalendarService myService = new CalendarService("exampleCo-exampleApp-1.0");
      myService.setUserCredentials("root@gmail.com", "pa$$word");
  
      URL feedUrl = new URL("http://www.google.com/calendar/feeds/default/allcalendars/full");
      CalendarFeed resultFeed = myService.getFeed(feedUrl, CalendarFeed.class);
  
      System.out.println("Your calendars:");
      System.out.println();
  
      for (int i = 0; i &lt; resultFeed.getEntries().size(); i++) {
        CalendarEntry entry = resultFeed.getEntries().get(i);
        System.out.println("\t" + entry.getTitle().getPlainText());
      }
  </code></pre>
  
  <p>I have these imports:</p>
  
  <pre><code>import com.google.gdata.client.calendar.*;
  import com.google.gdata.data.calendar.*;
  </code></pre>
  
  <p>but it shows <em>cannot find symbol at setUserCredentials, getEntries(), getTitle()</em>.  </p>