Eclipse中使用Ant打Android包报错解决方案 – Perhaps JAVA_HOME does not point to the JDK
16lz
2021-12-04
问题描述:
在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
更多相关文章
- Android睡眠统计图实现
- Android深度定制化TabLayout:圆角,渐变色,背景边框,基于Android原生T
- 【Android自动化打包】03. APK的数字签名
- 加快android的编译速度
- as android 打包
- 编译cubieboard android 源码过程详解之(六):pack
- Android(安卓)APK 打包
- Android常用框架地址
- android开机logo制作