Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:58 Go to next message
David M. Karr is currently offline David M. Karr
Messages: 354
Registered: July 2009
Senior Member
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 23:34 Go to previous messageGo to next message
Walter Harley is currently offline Walter Harley
Messages: 847
Registered: July 2009
Senior Member
"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 15:11 Go to previous message
David M. Karr is currently offline David M. Karr
Messages: 354
Registered: July 2009
Senior Member
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: Sun Oct 26 03:07:15 GMT 2014

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

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