Ant: Class not found: javac1.8

后端 未结 6 1319
刺人心
刺人心 2021-02-01 17:14

I am trying to build a project using Ant in eclipse. I right-clicked on build.xml > Run As > Ant Build. However, I am getting the following error:

BUILD FAILED
C         


        
6条回答
  •  耶瑟儿~
    2021-02-01 17:33

    The version of Ant bundled with your version of Eclipse is not compatible with Java 1.8.

    Go to the Ant download page, and extract the latest version somewhere appropriate onto your filesystem.

    In Eclipse, go to Window > Preferences > Ant > Runtime, click the Ant Home... button, and select the location that you extracted the newly downloaded Ant to.

提交回复
热议问题