Unable to locate tools.jar. Expected to find it in e:\program\Java\jre6\lib\tool s.jar
来源:互联网 发布:mp3铃声制作软件 编辑:程序博客网 时间:2024/04/28 17:17
今天安装了 ant。按照要求配置了 ANT_HOME 和 JAVA_HOME。然后在 命令行 (commandLine) 中输入 ant。提示如下信息:
Unable to locate tools.jar. Expected to find it in e:\program\Java\jre6\lib\tools.jar
Buildfile: build.xml does not exist!
Build failed
阅读 apache-ant-1.8.4/bin/ant.bat 文件,发现如下信息:
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto checkJikes
它将去 %JAVA_HOME%\bin 目录下找 java.exe
而我将JAVA_HOME 配置成:
E:\program\Java
然后将 JAVA_HOME 配置成:
E:\program\Java\jdk1.6.0_38
问题解决!
- Unable to locate tools.jar. Expected to find it in e:\program\Java\jre6\lib\tool s.jar
- Unable to locate tools.jar. Expected to find it in D:/jre6/lib/tools.jar问题解决
- Unable to locate tools.jar. Expected to find it in D:/jre6/lib/tools.jar问题解决
- Unable to locate tools.jar. Expected to find it in D:\Java\jre8\lib\tools.jar
- Unable to locate tools.jar. Expected to find it in C:/Program Files/Java/jre
- Unable to locate tools.jar. Expected to find it in C:/Program Files/Java/jre
- Unable to locate tools.jar. Expected to find it in C:/Program Files/Java/jre
- Unable to locate tools.jar. Expected to find it in C:/Program Files/Java/jre
- Ant- Unable to locate tools.jar. Expected to find it in C:/Program Files/Java/jre
- Unable to locate tools.jar. Expected to find it in C:/Program Files/Java/jre
- Unable to locate tools.jar. Expected to find it in........
- Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.5.0-gcj-4.5/lib/tools.jar 求解
- ant生成文件报错:Unable to locate tools.jar. Expected to find it in ...
- Unable to locate the Javac Compiler in: [ERROR] C:\Program Files\Java\jre7\..\lib\tools.jar
- Unable to locate the Javac Compiler in:C:/Program Files/Java/jre1.5.0_22/../lib/tools.jar
- Maven报错: Unable to locate the Javac Compiler in: D:\Program\java\jre1.7.0_45\..\lib\tools.jar
- maven install Unable to locate the Javac Compiler in: C:\Program Files\Java\jre7\..\lib\tools.jar
- maven 报Unable to locate the Javac Compiler in: D:\Program Files\Java\jdk1.6.0_20\..\lib\tools.jar
- C#MPI 第二课 MPI 发送结构体
- VC定义的三种类型DLL有什么区别?
- 有创业及野心的一定要看
- 今年忙于项目管理好久不写东西了
- C#MPI 第三课 MPI 发送图像数据
- Unable to locate tools.jar. Expected to find it in e:\program\Java\jre6\lib\tool s.jar
- C# 连接MongoDB服务器 并插入数据
- C# 操作Excel表格
- Linux下的USB总线驱动(04)——USB键盘驱动 usbkbd.c
- 区分 JSON 字符串 / 对象
- 关于SetLength报Out of memory的研究及解决办法
- win8主题制作
- getElementById 返回空、getElementById 参数为变量失败
- Linux下PHP调用Zip命令(转)