天天看點

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目錄。

繼續閱讀