Ant: Class not found: javac1.8

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

    I think, what you are seeing is Ant Bug 53347 (see https://issues.apache.org/bugzilla/show_bug.cgi?id=53347).

    If so, try either pf the following workarounds:

    Set the property "build.compiler" to a meaningful value like "javac1.7", or "javac1.3".

    Set the "compiler" attribute of the "javac" element of your build script to either of the above values. For all possible values, and their meaning, see http://ant.apache.org/manual/Tasks/javac.html

提交回复
热议问题