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

Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found,第1张

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

具体错误:

BUILD FAILED
/home/tsit/jna-5.5.0/build.xml:1253: The following error occurred while executing this line:
/home/tsit/jna-5.5.0/contrib/platform/build.xml:224: Problem: failed to create task or type junit
Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/usr/share/ant/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-junit.jar。怎么办?参考:

Cause: the class org.apache.tools.ant.taskdefs.optional.ANTLR was not found._柳鲲鹏-CSDN博客

只需要复制ant-junit.jar即可。 

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5677369.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存