The build.xml:97:unable to find a Javac compiler appears when running the ant script, meaning that there was an error in Java compilation, but I am obviously able to run eclipse. Later discovered that this eclipse is Google's own eclipse, so check the system environment configuration does not configure the JDK environment, so first configure the JDK environment configuration, this does not say, there is need to look at the path of Javac,window--> Preferences-->java-->installed JREs, such as
It is found that only the JRE environment, not the compilation environment, we need to change the path to the JDK, because the JDK includes the compilation environment and the operating environment,
Modify to such as:
Remember to specify the default, that is, the signature check, so OK
ANT build.xml Compilation Error error running Javac.exe compiler