happyzwh11111
happyzwh11111
2008-09-18 13:41

ant 配置问题(Perhaps JAVA_HOME does not poin),希望得到解答谢谢

已采纳

现在报这个错~~

BUILD FAILED
D:\workspace\ant_text\build.xml:46: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\MyEclipse 6.5\jre"

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • book_stevezheng book_stevezheng 13年前

    你把JAVA_HOME错误的配置到JRE目录了,改成:C:\Program Files\Java\jdk1.5.0_04或者类似的就行了。
    如果你是在myeclipse里面运行的ant,那么修改myeclipse绑定到jdk,不要jre

    点赞 评论 复制链接分享

相关推荐