您当前的位置: 首页 >  apache

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

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

柳鲲鹏 发布时间:2021-12-16 14:45:56 ,浏览量:0

具体错误:

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即可。 

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0707s