Eclipse中使用Ant打Android包报错及解决方案-成都快上网建站

Eclipse中使用Ant打Android包报错及解决方案

问题描述:

在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″

目前创新互联已为上千多家的企业提供了网站建设、域名、网站空间绵阳服务器托管、企业网站设计、北票网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

 

解决方案:

Eclipse菜单 – Window – Preferences – Java – Installed JREs – 选中栏目表格中的jre项 – Edit – Add External JARs – 选择jdk目录/lib/tools.jar - 确认其加入JRE system libraries– Finish – OK

 

 

 

如有任何疑问,请发送邮箱至237722726@qq.com,感谢您的阅读


本文名称:Eclipse中使用Ant打Android包报错及解决方案
本文URL:http://kswjz.com/article/ipcgcc.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流