熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

解析Neatbeans(常見錯誤) build-impl.xml:305: Compile fai

2022-06-13   來源: JSP教程 
本篇文章是對Neatbeans(常見錯誤) buildimplxml:: Compile failed的解決方法進行了詳細的分析介紹需要的朋友參考下  

  先貼一段buildimplxml中javac部分構建失敗提所在行的配置

復制代碼 代碼如下:
            <sequential>
                <property location="${builddir}/empty" name="emptydir"/>
                <mkdir dir="${emptydir}"/>
                <mkdir dir="@{apgeneratedsrcdir}"/>
                <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}">
                    <src>
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
                            <include name="*"/>
                        </dirset>
                    </src>
                    <classpath>
                        <path path="@{classpath}"/>
                    </classpath>
                    <SPAN style="COLOR: #ff"><compilerarg line="${endorsedclasspathcmdlinearg}"/>
                    <compilerarg line="${javaccompilerargs}"/>
                    <compilerarg value="processorpath"/>
                    <compilerarg path="@{processorpath}:${emptydir}"/>
                    <compilerarg line="${approcessorsinternal}"/>
                    <compilerarg value="s"/>
                    <compilerarg path="@{apgeneratedsrcdir}"/>
                    <compilerarg line="${approcnoneinternal}"/>
                    <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="${endorsedclasspathcmdlinearg}"/>
                    <compilerarg line="${javaccompilerargs}"/>
                    <compilerarg value="processorpath"/>
                    <compilerarg path="@{processorpath}:${emptydir}"/>
                    <compilerarg line="${approcessorsinternal}"/>
                    <compilerarg value="s"/>
                    <compilerarg path="@{apgeneratedsrcdir}"/>
                    <compilerarg line="${approcnoneinternal}"/>
                    <customize/></SPAN>

  
這段再次構建就成功了!


From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20386.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.