我尝试在我的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
对这个问题有任何想法吗?
答案 0 :(得分:0)
您的构建在“antlr_gen”目标中失败。 java任务缺少类路径中的antlr jar。
如果没有ANT build.xml进行调试,则无法继续提供帮助。