Hello, I am writing an Java apps using the Google Calendar Data API.
It works find when I running it in netbeans. But I have got an error
message while I am try to build my java project from classes to .jar
file. Can anyone help me? Thank you.

C:\Documents and Settings\VincentYau\My Documents\NetBeansProjects
\weatherbox_2\src\CalendarClient.java:68: cannot find symbol
symbol  : method add(com.google.gdata.data.extensions.Who)
location: interface
java.util.List<com.google.gdata.data.calendar.EventWho>
        myEntry.getParticipants().add(who);
1 error


  private CalendarEventEntry createEntryObject(String titleText,
                                               Map<String, String>
attendeeList) {

    CalendarEventEntry myEntry = new CalendarEventEntry();
    myEntry.setTitle(new PlainTextConstruct(titleText));
    myEntry.setSendEventNotifications(true);
    if (attendeeList != null) {
      for (Map.Entry<String, String> entry : attendeeList.entrySet())
{
        Who who = new Who();
        who.setEmail(entry.getKey());
        who.setAttendeeStatus(entry.getValue());
        myEntry.getParticipants().add(who);   <- here is the error
called by netbeans

      }
    }
    return myEntry;
  }

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to