Ant is using wrong java version

前端 未结 16 1531
小蘑菇
小蘑菇 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:23

    If you are not using eclipse. Then you can change the ant java property directly on the file as mentioned here.

    http://pissedoff-techie.blogspot.in/2014/09/ant-picks-up-incorrect-java-version.html

提交回复
热议问题