Ant: Class not found: javac1.8

后端 未结 6 1336
刺人心
刺人心 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:50

    Mr. studro is right. I just confirmed an example on Ubuntu 14.04

    sudo apt-get install ant
    ant -version
    Apache Ant (TM) Version 1.9.3 compiled on April August 2014
    

    works perfectly in eclipse, just follow the steps described by Mr studro to configure the 'Ant Home' in eclipse with "/usr/share/ant".
    Regards, Stéphane.

提交回复
热议问题