Eclipse中使用Ant打Android包报错解决方案 – Perhaps JAVA_HOME does not point to the JDK

问题描述:

在Eclipse中运行ant批量打包工具出错,日志信息如下:
D:\Android\android-sdk-windows\tools\ant\build.xml:601: The following error occurred while executing this line:
D:\Android\android-sdk-windows\tools\ant\build.xml:720: The following error occurred while executing this line:
D:\Android\android-sdk-windows\tools\ant\build.xml:734: 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 “D:\Program Files\Java\jre7″

解决方案:

Pre:新建变量 JAVA_HOME="你的JDK安装目录"

【我的电脑】-【属性】-【高级系统设置】-【环境变量】-【Path中配置Java相关要包含lib

%JAVA_HOME%\bin;%JAVA_HOME%\lib;%JAVA_HOME%\jre\bin;










本文转自 breezy_yuan 51CTO博客,原文链接:http://blog.51cto.com/lbrant/1650305,如需转载请自行联系原作者
上一篇:数据挖掘数据集下载资源


下一篇:程序员学数据科学需要掌握的常用算法和方法术语