新手问题,求救

niaoked 2014-09-08 09:58:34
IDE:netbean
使用build.xml运行。
提示:
build.xml:141: taskdef A class needed by class com.sun.tools.jxc.SchemaGenTask cannot be found: com/sun/mirror/apt/AnnotationProcessorFactory
using the classloader AntClassLoader[F:Src\lib\JAXB-2.2.4\activation.jar;F:Src\lib\JAXB-2.2.4\jaxb-api.jar;F:Src\lib\JAXB-2.2.4\jaxb-impl.jar;F:Src\lib\JAXB-2.2.4\jsr173_1.0_api.jar;F:Src\lib\JAXB-2.2.4\jaxb1-impl.jar;F:Src\lib\JAXB-2.2.4\jaxb-xjc.jar]

build.xml 141行相关代码如下:
141 <taskdef name="schemagen" classname="com.sun.tools.jxc.SchemaGenTask">
142 <classpath>
143 <fileset dir="${lib}/JAXB-2.2.4" includes="*.jar" />
144 </classpath>
145 </taskdef>

本人新手,请大侠指点
...全文
221 9 打赏 收藏 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
skgary 2014-09-08
  • 打赏
  • 举报
回复
那你com/sun/mirror/apt/AnnotationProcessorFactory 这个包,有没有在你xml的配置文件里面嘛?
niaoked 2014-09-08
  • 打赏
  • 举报
回复
换了路径,问题依然。
skgary 2014-09-08
  • 打赏
  • 举报
回复
你还自己修改了日志啊。。。 汗。
niaoked 2014-09-08
  • 打赏
  • 举报
回复
代码路径不要包含中文?
skgary 2014-09-08
  • 打赏
  • 举报
回复
建议不要用中文。。。。
朗晴 2014-09-08
  • 打赏
  • 举报
回复
找到了速速结贴!今天是个好日子,中秋节@!
niaoked 2014-09-08
  • 打赏
  • 举报
回复
找到问题了 this error occurs when trying to build project with the JDK 8 compiler, as Oracle removed com.sun.mirror.apt.AnnotationProcessorFactory in Java 8. This issue has already been fixed for the next release. Until we publish that, please use the JDK 7 to build the project. 原来是编译器版本的过。
superman4125 2014-09-08
  • 打赏
  • 举报
回复

62,620

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧