Ant is using wrong java version

前端 未结 16 1484
小蘑菇
小蘑菇 2020-11-28 09:20

I\'m using Ant 1.7.0 and installed java 1.6 which is in JAVA_HOME.

I want to build a project using java 1.5, so I\'ve exported JAVA_HOME to be my java 1.5 directory.

16条回答
  •  温柔的废话
    2020-11-28 10:19

    According to the ant manual, setting JAVA_HOME should work - are you sure the changed setting is visible to ant?

    Alternatively, you could use the JAVACMD variable.

提交回复
热议问题