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

简介: 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的内容不对。解决办法:


检查版本

Apache Ant(TM) version 1.10.5 compiled on August 27 2018

下载ant

Index of /ant/binaries


Apache Ant - Binary Distributions


Index of /dist/ant/binaries


这个链接可以下载各种老版本。


复制缺少的jar

我们只复制需要的jar,如ant-antlr.jar。目录应该是/usr/share/ant/lib

目录
相关文章
|
6月前
|
Java 数据库连接 mybatis
解决Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: No constructor found
解决Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: No constructor found
288 1
|
6月前
|
Dubbo Java 应用服务中间件
Serialized class org.apache.catalina.core.ApplicationPart must implement java.io.Serializable
Serialized class org.apache.catalina.core.ApplicationPart must implement java.io.Serializable
87 0
|
5月前
|
XML Java 数据库连接
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):XXXXX
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):XXXXX
|
6月前
|
XML Java 数据库连接
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.forum.d
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.forum.d
61 1
|
5月前
|
Oracle 关系型数据库 Shell
实时计算 Flink版操作报错合集之遇到报错:Error: Could not find or load main class org.apache.flink.cdc.cli.CliFrontend,是什么导致的
在使用实时计算Flink版过程中,可能会遇到各种错误,了解这些错误的原因及解决方法对于高效排错至关重要。针对具体问题,查看Flink的日志是关键,它们通常会提供更详细的错误信息和堆栈跟踪,有助于定位问题。此外,Flink社区文档和官方论坛也是寻求帮助的好去处。以下是一些常见的操作报错及其可能的原因与解决策略。
187 0
|
5月前
|
Java 数据库连接 mybatis
【已解决】nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘qcBizname‘ not found
【已解决】nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘qcBizname‘ not found
157 0
org.apache.ibatis.builder.BuilderException: An invalid property ‘jdbcType ‘ was found in mapping
org.apache.ibatis.builder.BuilderException: An invalid property ‘jdbcType ‘ was found in mapping
|
XML Java 数据库连接
【异常解决】解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题
【异常解决】解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题
219 0
|
XML 前端开发 Java
解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)异常
解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)异常
1372 0
解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)异常
|
SQL Java 数据库连接
nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘‘ not found. Ava
用mybatis写注解SQL的执行报错,这个报错有很多原因就不说了,说一下我的问题 同一个mapper中方法有重名的,虽然编译没报错,相当于重载了,但是执行的时候就报错了 方法写的太多了都没注意

推荐镜像

更多