问题描述:

在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


更多相关文章

  1. Android睡眠统计图实现
  2. Android深度定制化TabLayout:圆角,渐变色,背景边框,基于Android原生T
  3. 【Android自动化打包】03. APK的数字签名
  4. 加快android的编译速度
  5. as android 打包
  6. 编译cubieboard android 源码过程详解之(六):pack
  7. Android(安卓)APK 打包
  8. Android常用框架地址
  9. android开机logo制作

随机推荐

  1. android 中buildToolsVersion和dependenc
  2. 关于android contentprovider 多线程读取
  3. android zxing生成二维码
  4. Android(安卓)WebView
  5. android 多个activity 共用一套广播Broad
  6. android submenu
  7. android assets/raw 大文件读取
  8. Android: Multithreading For Performanc
  9. 迁移到Androidx的常用依赖映射
  10. Android(安卓)Custom UI: Making a Vinta