Ant出错-Perhaps JAVA_HOME does not point to the JDK

来源:互联网 发布:25岁程序员猝死 编辑:程序博客网 时间:2024/04/24 12:12

问题描述:Eclipse中运行Ant出错,信息如下 Unable to find a javac compiler Perhaps JAVA_HOME does not point to the JDK 解决方法: 把JAVA_HOME错误的配置到JRE目录了,改成:C:/Program Files/Java/jdk1.5.0_04或者类似的就行了。
如果你是在myeclipse里面运行的ant,那么修改myeclipse绑定到jdk,不要jre