Ant: Class not found: javac1.8

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

    To make it still more clear.

    1>Set JAVA_HOME,JRE_HOME and Update Ant to 1.9

    2>Over build.xml right click => run as (this takes into configuration)==>Now in this Edit Configuration and launch pop-up window

    select Main tab then the third form field called "Arguments" add:

    -Dbuild.compiler=javac1.7
    

    3> In build.xml add includeantruntime="false"

    
            
    
    

    Edit configuration

    It should compile without any message

提交回复
热议问题