这是我构建时的错误http://www.processing.org/:
BUILD FAILED
/opt/processing/build/build.xml:309: The following error occurred while executing this line:
/opt/processing/build/build.xml:365: The following error occurred while executing this line:
/opt/processing/java/build.xml:37: Problem: failed to create task or type antlr
Cause: the class org.apache.tools.ant.taskdefs.optional.ANTLR was not found.
This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
-/opt/apache-ant-1.9.5/lib
-/root/.ant/lib
-a directory added on the command line with the -lib argument
Do not panic, this is a common problem.
The commonest cause is a missing JAR.
This is not a bug; it is a configuration problem
我按照说明操作,将 jar 放在正确的位置。我没有看到任何关于如何在命令行上传递 -lib 的 ant 文档,我甚至尝试通过包管理器安装 antlr,它可以工作,我可以输入 antlr,它会吐出
Antlr parser generator Version 1.33MR33 1989-2001
我能做些什么?
答案1
从 gluegen 包中得到了相同的消息。Google 找到了http://www.java2s.com/Code/Jar/a/Downloadantoptional1531jar.htm仅用于类搜索。安装 ant-optional/ant-optional-1.5.3-1.jar.zip( 608 k) 解决了这个问题(用于下一个)。