DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> 關於JavaScript >> 解析Neatbeans(常見錯誤) build-impl.xml:305: Compile failed
解析Neatbeans(常見錯誤) build-impl.xml:305: Compile failed
編輯:關於JavaScript     
本篇文章是對Neatbeans(常見錯誤) build-impl.xml:305: Compile failed的解決方法進行了詳細的分析介紹,需要的朋友參考下  

先貼一段build-impl.xml中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: #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: 項目subversionsvn2010jwebplus3trunksrcwebplus3webplus3nbproject build-impl.xml:868: The following error occurred while executing this line:
F:項目subversionsvn2010jwebplus3trunksrcwebplus3webplus3 nbprojectbuild-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}">
其實,我們刪除

復制代碼 代碼如下:
<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>


這段,再次構建,就成功了!

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved