Neatbeans(常见错误) build-impl.xml:305: Compile failed

前端之家收集整理的这篇文章主要介绍了Neatbeans(常见错误) build-impl.xml:305: Compile failed前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

先贴一段build-impl.xml中javac部分构建失败提所在行的配置

  1. <sequential>
  2. <property location="${build.dir}/empty" name="empty.dir"/>
  3. <mkdir dir="${empty.dir}"/>
  4. <mkdir dir="@{apgeneratedsrcdir}"/>
  5. <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
  6. <src>
  7. <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  8. <include name="*"/>
  9. </dirset>
  10. </src>
  11. <classpath>
  12. <path path="@{classpath}"/>
  13. </classpath>
  14. <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  15. <compilerarg line="${javac.compilerargs}"/>
  16. <compilerarg value="-processorpath"/>
  17. <compilerarg path="@{processorpath}:${empty.dir}"/>
  18. <compilerarg line="${ap.processors.internal}"/>
  19. <compilerarg value="-s"/>
  20. <compilerarg path="@{apgeneratedsrcdir}"/>
  21. <compilerarg line="${ap.proc.none.internal}"/>
  22. <customize/>
  23. </javac>
  24. </sequential>
程序本身没有什么错误,但是编译器一构建,就报

F:\项目\subversion\svn2010\jwebplus3\trunk\src\webplus3\webplus3\nbproject\build-impl.xml:868: The following error occurred while executing this line:
F:\项目\subversion\svn2010\jwebplus3\trunk\src\webplus3\webplus3\nbproject\build-impl.xml:305: Compile Failed; see the compiler error output for details.

构建失败 (总时间: 12 秒)

我们来看看305行是什么?

<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">

其实,我们删除

  1. <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  2. <compilerarg line="${javac.compilerargs}"/>
  3. <compilerarg value="-processorpath"/>
  4. <compilerarg path="@{processorpath}:${empty.dir}"/>
  5. <compilerarg line="${ap.processors.internal}"/>
  6. <compilerarg value="-s"/>
  7. <compilerarg path="@{apgeneratedsrcdir}"/>
  8. <compilerarg line="${ap.proc.none.internal}"/>
  9. <customize/>
这段,再次构建,就成功了!

猜你在找的XML相关文章