蚂蚁错误试图建立文件时,无法找到的tools.jar? [英] Ant error when trying to build file, can't find tools.jar?

查看:176
本文介绍了蚂蚁错误试图建立文件时,无法找到的tools.jar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行蚂蚁这样说的:

When I run ant it says:

Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
Buildfile: build.xml does not exist!
Build failed

我可以使用哪些包下载所需的文件> C:\\ Program Files文件\\的Java \\ JRE6 \\ lib目录\\ tools.jar中

What package can I use to download the file required > C:\Program Files\Java\jre6\lib\tools.jar

我刚刚下载这一个:

JRE-6u19-Windows的i586系统-s.exe

jre-6u19-windows-i586-s.exe

但不幸的是它似乎那不是就可以了...

but unfortunately it appears that it was not on it...

推荐答案

Java的船舶在两个版本:JRE和放大器; SDK(以前被称为JDK)

Java ships in 2 versions: JRE & SDK (used to be called JDK)

在JRE除了不包含编译器,也并不包含所有可用的JDK(的tools.jar是其中之一)

The JRE in addition to not containing the compiler, also doesn't contain all of the libraries available in the JDK (tools.jar is one of them)

在下载Java在:<一href=\"http://java.sun.com/javase/downloads/index.jsp\">http://java.sun.com/javase/downloads/index.jsp,确保选择的JDK版本并安装它。如果你同时拥有JDK&安培; JRE,确保ANT使用JDK,您可以检查JAVA_HOME(环境变量),以及如果你做的javac -version命令行,你应该得到一个版本的说明。

When you download Java at: http://java.sun.com/javase/downloads/index.jsp, make sure to select the JDK version and install it. If you have both a JDK & JRE, make sure that ANT is using the JDK, you can check JAVA_HOME (environment variable), and on the commandline if you do "javac -version" you should get a version description.

这篇关于蚂蚁错误试图建立文件时,无法找到的tools.jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆