ANT build.xml Compilation Error error running Javac.exe compiler

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.