命令行输入ant命令却抛出空指针异常:
Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.
C:\Documents and Settings\Administrator>ant
java.lang.NullPointerException
at org.apache.tools.ant.launch.Locator.getLocationURLs(Locator.java:262)
at org.apache.tools.ant.launch.Locator.getLocationURLs(Locator.java:212)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:128)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
C:\Documents and Settings\Administrator>
我的环境变量配置没问题!以前是可以执行的,不知道我做什么操作了。应该怎么解决?
------解决方法--------------------------------------------------------
不会吧,build文件不存在提示得这样得错误
Buildfile: build.xml does not exist!
Build failed
------解决方法--------------------------------------------------------
没办法只有重装。