源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

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

  • 时间:2022-08-07 01:53 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:解析Neatbeans(常见错误) build-impl.xml:305: Compile failed
先贴一段build-impl.xml中javac部分构建失败提所在行的配置
[u]复制代码[/u] 代码如下:
            <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: #ff0000"><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:\项目\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}"> 其实,我们删除
[u]复制代码[/u] 代码如下:
<SPAN style="COLOR: #ff0000">                    <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>
[b]这段,再次构建,就成功了! [/b]
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部