Your team member was using the Java 6 JDK. The @XmlSeeAlso annotation
is not available in the Java 5 SDK:
http://java.sun.com/javase/6/docs/api/javax/xml/bind/annotation/XmlSeeAlso.html

I've seen this happen a lot. You need to either switch to JDK6 to
build your app, or find an JDK5 compatible alternative for the jar
that requires XmlSeeAlso (at a wild guess, I presume it's a web
services client library?).

On Mon, Mar 15, 2010 at 9:37 PM, Amy Winarske <amy.winar...@gmail.com> wrote:
> The Eclipse build for my 1.6 application project is succeeding and the
> Ant build is failing.  I'm looking for help on why they aren't
> behaving the same way.
>
> We are developing on Mac OSX 10.5.8 with Eclipse 3.5 against SDK 1.6 +
> Google APIs.  There are no setting changes in Eclipse, either at
> workspace or project level.  Similarly, our ant is also a vanilla-
> flavored unmodified installation of 1.7.1.  JDK is 1.5.0_22.  The
> CLASSPATH environment variable is not set.  JAVA_HOME is /Library/Java/
> Home
>
> The application was initially created by a team member using the
> Eclipse plugins.  The application references two jar files, one of
> which has a dependency on javax.xml.bind.annotation.XmlSeeAlso, which
> is not defined anywhere in our code or in android.jar.  The other jar
> file has an explicit dependency on android.jar.  I generated the Ant
> build file using android update.
>
> The Eclipse project builds an apk and runs the application in the
> emulator.  I think this is incorrect behavior.
>
> The Android project fails to build.  I think this is correct behavior.
> MyClass.java:98: cannot access javax.xml.bind.annotation.XmlSeeAlso
>    [javac] file javax/xml/bind/annotation/XmlSeeAlso.class not found
>
> Any ideas as to why the two build methods are behaving differently?  I
> would expect them both to fail.
>
> Thanks!
>
> -Amy
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to