当我尝试使用java调用ant build文件时,它会出现以下错误:

时间:2012-10-10 06:58:06

标签: java unix

我使用的命令:java -cp。:/ adc / as / repo / asas / lib / ant.jar:/adc/as/repo/asas/lib/ant-launcher-1.6.1.jar src。 VP

Exception in thread "main" /adc/as/repo/asas/as-build/cp-build.xml:67: java.lang.NoSuchMethodError: org.apache.tools.ant.launch.Locator.decodeUri(Ljava/lang/String;)Ljava/lang/String;
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at src.vp.call(vp.java:124)
    at src.vp.main(vp.java:176)
Caused by: java.lang.NoSuchMethodError: org.apache.tools.ant.launch.Locator.decodeUri(Ljava/lang/String;)Ljava/lang/String;
    at org.apache.tools.ant.AntClassLoader.addPathFile(AntClassLoader.java:542)
    at org.apache.tools.ant.AntClassLoader.addPathElement(AntClassLoader.java:458)
    at org.apache.tools.ant.AntClassLoader.setClassPath(AntClassLoader.java:358)
    at org.apache.tools.ant.AntClassLoader.<init>(AntClassLoader.java:241)
我是否在班级路径中遗漏了一些东西?

0 个答案:

没有答案