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

发布时间:2020-05-06 22:14:15 作者:yjq_120
来源:网络 阅读:1075

问题描述:

在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,感谢您的阅读


推荐阅读:
  1. eclipse连tomcat报错时解决方案
  2. eclipse中springboot工程打war包方法及在Tomcat中运行的示例分析

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

出错 打包 ant

上一篇:Annotation注解及元注解

下一篇:从e租宝被查看P2P网站安全:普遍缺乏安全意识,成钓鱼重灾区

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》