This article is a Neatbeans (common error) Build-impl.xml:305:compile failed solution for a detailed analysis of the introduction of the needs of friends under the reference
The configuration of the row where the javac part of the build failure is mentioned first in a build-impl.xml
Copy 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 when the compiler is built, it reports
F: Project Subversionsvn2010jwebplus3trunksrcwebplus3webplus3nbproject build-impl.xml:868:the following error occurred while executing this line:
F: Project Subversionsvn2010jwebplus3trunksrcwebplus3webplus3 Nbprojectbuild-impl.xml:305:compile failed; The compiler error output for details.
Build failed (Total time: 12 seconds)
let's see what 305 lines are.
<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} ">
in fact, we removed
Copy 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 paragraph, build again, succeed!