First paste the configuration of the row where the javac part of the build-impl.xml fails to be built
Copy codeThe Code is 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 =" zookeeper javac.tar get} "tempdir =" $ {java. io. tmpdir} ">
<Src>
<Dirset dir = "@ {gensrcdir}" erroronmissingdir = "false">
<Include name = "*"/>
</Dirset>
</Src>
<Classpath>
<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>
The program itself has no errors, but when the compiler is built, it will report
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.
Failed to build (total time: 12 seconds)
Let's see what row 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 =" zookeeper javac.tar get} "tempdir =" $ {java. io. tmpdir} ">
In fact, we deleteCopy codeThe Code is 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>
In this section, build again and you will be successful!