I was able to succussefully build
the calendar and webmaster tools demo using

c:\eclipse\gdata\java>ant -f build-samples.xml sample.calendar.run

c:\eclipse\gdata\java>ant -f build-samples.xml sample.webmastertools.run

For the Google Docs
c:\eclipse\gdata\java>ant -f build-samples.xml sample.docs.run

I received the following error.

----------------------------------------------------------------------------------------------------
c:\eclipse\gdata\java>ant -f build-samples.xml sample.docs.run
Buildfile: build-samples.xml

sample.docs.dependencies:

template.require.service.jar:

sample.docs.build:
    [javac] Compiling 1 source file to
c:\eclipse\gdata\java\sample\docs\classes
    [javac] Note: c:\eclipse\gdata\java\sample\docs\DocumentListDemo.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
      [jar] Building jar:
c:\eclipse\gdata\java\sample\docs\lib\DocumentListDemo.jar

sample.docs.run:
     [java] Exception in thread "main" java.lang.NoClassDefFoundError:
javax/mail/MessagingException
     [java]     at
sample.docs.DocumentListDemo.main(DocumentListDemo.java:322)
     [java] Caused by: java.lang.ClassNotFoundException:
javax.mail.MessagingException
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [java]     at java.security.AccessController.doPrivileged(Native
Method)
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
     [java]     at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
     [java]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
     [java]     ... 1 more
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 1 second
c:\eclipse\gdata\java>
----------------------------------------------------------------------------------------------------

I placed the mail.jar in the directory
"third_party" which is at the same level as the java directory.

eclipse
  gdata
    java
    third_party

Q: Is the location of the "mail.jar" [in directory third_party] correct
or was a configuration step overlooked?
Both "mail.jar" and "servlet.jar"
are located in directory third_party
as was instructed in
tutorial
http://code.google.com/apis/gdata/articles/eclipse.html

Thanks in Advance,
TJH

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data Protocol" 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://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to