构建 Jython 错误:"NoClassDefFoundError: org/antlr/Tool"



我试图在macbook pro上构建Jython,但在简单的ant命令后出现错误。

$ jython-2.5.4-rc1-sources zzhao$ ant
Buildfile: /Users/jack/Dev/jython/jython-2.5.4-rc1-sources/build.xml
init:
needed-check:
clean-if-antlr-needed:
init:
clean-checkout-dir:
clean:
prepare-output:
    [mkdir] Created dir: /Users/jack/Dev/jython/jython-2.5.4-rc1-sources/build/classes
    [mkdir] Created dir: /Users/jack/Dev/jython/jython-2.5.4-rc1-sources/build/gensrc/org/python/antlr
    [mkdir] Created dir: /Users/jack/Dev/jython/jython-2.5.4-rc1-sources/build/exposed
    [mkdir] Created dir: /Users/jack/Dev/jython/jython-2.5.4-rc1-sources/dist
antlr_gen:
     [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/Tool
     [java] Caused by: java.lang.ClassNotFoundException: org.antlr.Tool
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
BUILD FAILED
/Users/jack/Dev/jython/jython-2.5.4-rc1-sources/build.xml:496: Java returned: 1

你知道这个问题吗?

您的构建在"antlr_gen"目标中失败。java任务的类路径中缺少antlr jar。

如果没有ANT build.xml进行调试,将无法提供任何帮助。

相关内容

  • 没有找到相关文章

最新更新