Cause: the class org.apache.tools.ant.taskdefs.optional.ANTLR was not found.

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cause: the class org.apache.tools.ant.taskdefs.optional.ANTLR was not found.相关的知识,希望对你有一定的参考价值。

  具体错误:

gluegen.build.javase:

generate.java:

BUILD FAILED
/home/tsit/jogamp232-loongarch64/gluegen/make/build.xml:957: The following error occurred while executing this line:
/home/tsit/jogamp232-loongarch64/gluegen/make/build.xml:694: The following error occurred while executing this line:
/home/tsit/jogamp232-loongarch64/gluegen/make/build.xml:653: 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
        -/home/tsit/apache-ant-1.10.11/dist/lib
        -/home/tsit/.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

  什么意思?就是ant缺少东西。原因是吾自己下载编译了ant(因为到目前为止,loongarch64平台没有ant可更新安装),实际上lib的内容不对。解决办法:

  • 下载ant

https://downloads.apache.org/ant/binaries/

https://ant.apache.org/bindownload.cgi

  • 将其中的lib目录提出来覆盖ant的lib目录。

以上是关于Cause: the class org.apache.tools.ant.taskdefs.optional.ANTLR was not found.的主要内容,如果未能解决你的问题,请参考以下文章

What reason cause the abrasion of jaw crusher spare parts?

Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully receive

报错处理:Cause: java.sql.SQLException: The server time zone value

Cause: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character

Qt编译报错:The kit Desktop Qt...has configuration issues which might be the root cause for this problem.

报错处理:Cause: java.sql.SQLException: The server time zone value