Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Ant editor warning about missing AnnotationProcessorFactory class
Ant editor warning about missing AnnotationProcessorFactory class [message #506515] Thu, 07 January 2010 09:58 Go to next message
Eclipse UserFriend
I'm building an app using JAXB and other frameworks. The Ant build works fine from both Eclipse and the command line.

The one minor annoyance I have is that Eclipse is giving me a warning on the taskdef for "schemagen":

<taskdef name="schemagen" classpathref="schemagen.classpath" classname="com.sun.tools.jxc.SchemaGenTask">
<classpath>
<fileset dir="lib" includes="*.jar"/>
</classpath>
</taskdef>

The warning is:

"A class needed by class com.sun.tools.jxc.SchemaGenTask cannot be found: com/sun/mirror/
apt/AnnotationProcessorFactory"

This class is found in the "tools.jar" of the JDK. I noticed that in the list of jars associated with the JRE, that jar is not included. So, I tried including it in both the project build path and the classpath for the Ant run configuration. Neither of those made any difference. It's still displaying that warning.
Re: Ant editor warning about missing AnnotationProcessorFactory class [message #506725 is a reply to message #506515] Fri, 08 January 2010 18:34 Go to previous messageGo to next message
Eclipse UserFriend
"David M. Karr" <davidmichaelkarr@gmail.com> wrote in message
news:hi5eep$sq2$1@build.eclipse.org...
> I'm building an app using JAXB and other frameworks. The Ant build works
> fine from both Eclipse and the command line.
>
> The one minor annoyance I have is that Eclipse is giving me a warning on
> the taskdef for "schemagen":
>
> <taskdef name="schemagen" classpathref="schemagen.classpath"
> classname="com.sun.tools.jxc.SchemaGenTask">
> <classpath>
> <fileset dir="lib" includes="*.jar"/>
> </classpath>
> </taskdef>
>
> The warning is:
>
> "A class needed by class com.sun.tools.jxc.SchemaGenTask cannot be found:
> com/sun/mirror/
> apt/AnnotationProcessorFactory"
>
> This class is found in the "tools.jar" of the JDK. I noticed that in the
> list of jars associated with the JRE, that jar is not included. So, I
> tried including it in both the project build path and the classpath for
> the Ant run configuration. Neither of those made any difference. It's
> still displaying that warning.


That class is also redistributed as part of the org.eclipse.jdt.apt.core
plugin, so you may be able to get it that way, if that helps.
Re: Ant editor warning about missing AnnotationProcessorFactory class [message #506770 is a reply to message #506725] Sat, 09 January 2010 10:11 Go to previous message
Eclipse UserFriend
Thanks, but I don't see how that can help. I already put the tools.jar with the class in the project classpath. I can't imagine that putting a different jar with that same class in the classpath would make any difference.
Previous Topic:Getting Class information from Eclipse
Next Topic:Eclipse builder problem
Goto Forum:
  


Current Time: Fri Mar 21 20:37:42 EDT 2025

Powered by FUDForum. Page generated in 0.03027 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top