First, paste a section of the configuration of the line where the javac part of build-impl.xml fails to build.
Copy the code code as follows:
<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>
There is nothing wrong with the program itself, but as soon as the compiler is built, it reports
F:/project/subversion/svn2010/jwebplus3/trunk/src/webplus3/webplus3/nbproject/build-impl.xml:868: The following error occurred while executing this line:
F:/project/subversion/svn2010/jwebplus3/trunk/src/webplus3/webplus3/nbproject/build-impl.xml:305: Compile failed; see the compiler error output for details.
Build failed (total time: 12 seconds)
Let's see what line 305 is?
<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}">
Actually, we delete
Copy the code code as follows:
<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>
This section, built again, was successful!