Eclipse中使用Ant打Android包报错解决方案 – Perhaps JAVA_HOME does not point to the JDK

问题描述:

在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

我的wp博文地址:http://wangtong.sinaapp.com/?p=14

时间: 2024-11-08 04:58:20

Eclipse中使用Ant打Android包报错解决方案 – Perhaps JAVA_HOME does not point to the JDK的相关文章

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 exe

eclipse 中离线安装activiti插件,报错“An error occurred while collecting items to be installed session context was:(...”

eclipse 中离线安装activiti插件,报错“An error occurred while collecting items to be installed session context was:(...” 按照文章:eclipse离线安装Activiti Designer插件,下载插件的两个离线安装文件,并按照步骤安装后,一直next后报错,如下: An error occurred while collecting items to be installed session co

利用Eclipse中的Maven构建Web项目报错

利用Eclipse中的Maven构建Web项目 1.在进行上述操作时,pom.xml一直报错 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.o

Eclipse正在使用Ant扑灭Android数据包错误的解决方案 – Perhaps JAVA_HOME does not point to the JDK

问题描写叙述: 在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 execut

eclipse中以debug方式启动tomcat报错

在eclipse中debug  Tomcat报错,错误如下: FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: connect failed: Operation timed out ERROR: JDWP Transport dt_socket failed to initiali

利用Eclipse中的Maven构建Web项目报错(二)

利用Eclipse中的Maven构建Web项目 1.错误描写叙述 [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ---------------------------------

pom.xml中添加oracle数据库驱动包报错: Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0

pom.xml 加载jar包时报错:Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0. 由于oracle的ojdbc收费,所以在maven项目导入时没有ojdbc14-10.2.0.4.0.jar包. 解决方法: 配置本地库.下载jar包,把jar包放在仓库对应的文件夹ojdbc14\10.2.0.4.0\里,安装到本地仓库(需要事先配过maven的环境变量),在命令行工具中写如下命令,注意本地仓库位置一定要写对: mvn install:in

Eclipse中使用git提交代码,报错Testng 运行Cannot find class in classpath的解决方案

一.查找原因方式 1.点击Project-->Clear...-->Build Automatically 2.查看问题 二.报错因素 1.提交.xlsx文件 2.提交时,.xlsx文件被打开 三.解决方案 1.关闭此.xlsx文件以及删除新生成的xlsx文件 2.再次pull以及提交

eclipse中web工程新建jsp文件报错:The superclass &quot;javax.servlet.http.HttpServlet&quot; was not found on the Java Build Path

web工程中新建jsp文件提示:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方案: 1.右击web工程->属性或Build Path->Java Build Path->Libraries-> Add Libray...->Server Runtime ->JBoss 7.1 Runtime   2.切换到Java Bui