Ant: Class not found: javac1.8

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

    I already did some extensive googling before asking this question but continuing that I found a solution here: This issue seems to only appear when using JDK 1.8 so using JDK 1.7 instead solves the problem. The following line needs to be added to eclipse.ini:

    -vm "path-to-jdk-1.7\bin\javaw.exe"
    

提交回复
热议问题