![](/img/trans.png)
[英]Eclipse and GWT looking for inherited module in wrong package, despite gwt.xml file having correct path?
[英]Ant is looking in wrong directory despite having the correct environment variable set
我的JAVA_HOME设置为C:\\ Program Files \\ Java \\ jdk1.7.0_40; 它所在的位置。 当我运行Ant时,出现此错误。
C:\Program Files\apache-ant-1.9.2\bin>ant
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\li
b\tools.jar
Buildfile: build.xml does not exist!
Build failed
jre7文件和jdk1.7.0_40文件彼此紧邻。 知道发生了什么吗?
先感谢您。
您需要在与build.xml
文件相同的目录中运行ant。 或者, ant -f path/to/build.xml
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.