zoukankan      html  css  js  c++  java
  • Eclipse正在使用Ant扑灭Android数据包错误的解决方案 – Perhaps JAVA_HOME does not point to the JDK

    问题描写叙述:

    在Eclipse中执行ant批量打包工具出错,日志信息例如以下:
    D:Androidandroid-sdk-windows oolsantuild.xml:601: The following error occurred while executing this line:
    D:Androidandroid-sdk-windows oolsantuild.xml:720: The following error occurred while executing this line:
    D:Androidandroid-sdk-windows oolsantuild.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 FilesJavajre7″

    解决方式:

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


    版权声明:本文博主原创文章,博客,未经同意不得转载。

  • 相关阅读:
    7.python常用模块
    7.python3实用编程技巧进阶(二)
    7.Flask文件上传
    7.Django CSRF 中间件
    7.Ajax
    6.python内置函数
    6.python3实用编程技巧进阶(一)
    6.jQuery(实例)
    PhpStorm 10.0.1破解激活步骤
    PyCharm 2018.1破解激活步骤
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/4869100.html
Copyright © 2011-2022 走看看