本篇文章是对Neatbeans(常见错误) build
impl
xml:
: Compile failed的解决方法进行了详细的分析介绍
需要的朋友参考下
先贴一段buildimplxml中javac部分构建失败提所在行的配置
复制代码 代码如下:
<sequential>
<property location="${build
dir}/empty" name="empty
dir"/>
<mkdir dir="${empty
dir}"/>
<mkdir dir="@{apgeneratedsrcdir}"/>
<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}">
<src>
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
<include name="*"/>
</dirset>
</src>
<classpath>
<path path="@{classpath}"/>
</classpath>
<SPAN style="COLOR: #ff
"><compilerarg line="${endorsed
classpath
cmd
line
arg}"/>
<compilerarg line="${javac
compilerargs}"/>
<compilerarg value="
processorpath"/>
<compilerarg path="@{processorpath}:${empty
dir}"/>
<compilerarg line="${ap
processors
internal}"/>
<compilerarg value="
s"/>
<compilerarg path="@{apgeneratedsrcdir}"/>
<compilerarg line="${ap
proc
none
internal}"/>
<customize/></SPAN>
</javac>
</sequential>
程序本身没有什么错误但是编译器一构建就报
F: 项目subversionsvnjwebplustrunksrcwebpluswebplusnbproject buildimplxml:: The following error occurred while executing this line:
F:项目subversionsvnjwebplustrunksrcwebpluswebplus nbprojectbuildimplxml:: Compile failed; see the compiler error output for details
构建失败 (总时间: 秒)
我们来看看行是什么?
<javac debug="@{debug}" deprecation="${javacdeprecation}" destdir="@{destdir}" encoding="${sourceencoding}" excludes="@{excludes}" executable="${platformjavac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javacsource}" srcdir="@{srcdir}" target="${javactarget}" tempdir="${javaiotmpdir}">
其实我们删除
复制代码 代码如下:
<SPAN style="COLOR: #ff
"> <compilerarg line="${endorsed
classpath
cmd
line
arg}"/>
<compilerarg line="${javac
compilerargs}"/>
<compilerarg value="
processorpath"/>
<compilerarg path="@{processorpath}:${empty
dir}"/>
<compilerarg line="${ap
processors
internal}"/>
<compilerarg value="
s"/>
<compilerarg path="@{apgeneratedsrcdir}"/>
<compilerarg line="${ap
proc
none
internal}"/>
<customize/></SPAN>
这段再次构建就成功了!