本文介绍了无法找到tools.jar中。预计将发现它在C:\\ Program Files文件\\的Java \\ JRE6 \\李斌\\ tools.jar中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

当我试图运行下面的命令我得到一个错误:

  $蚂蚁-Dsdk.dir = /选择/谷歌/ AppEngine上-Java的SDK的runserver -Dserver.host = 192.168.1.10

以下是错误:

I have given jdk path in JAVA_HOME variable as C:\PROGRA~1\Java\jdk1.6.0_25 as my jdk location is C:\Program Files (x86)\Java\jdk1.6.0_25.

What is the issue? Please help me.Thanks in advance.

When I have tried to run the command ant -diagnostics , I got

java.home : C:\Program Files\Java\jre6
解决方案

You should try adding %JAVA_HOME%\bin at the beginning of your PATH environment variable (given syntax assumes Windows of course).As Peter Knego commented, tools.jar exists in the JDK, not the JRE, so you must make sure the JAVA_HOME points to your JDK directory.

这篇关于无法找到tools.jar中。预计将发现它在C:\\ Program Files文件\\的Java \\ JRE6 \\李斌\\ tools.jar中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 22:38