0
点赞
收藏
分享

微信扫一扫

eclipse指定junit报java.lang.NoClassDefFoundError: org/junit/platform/engine/ConfigurationParameters

小_北_爸 2022-01-08 阅读 86

eclipse指定junit不能正常执行

eclipse指定junit报java.lang.NoClassDefFoundError: org/junit/platform/engine/ConfigurationParameters

环境

Eclipse IDE for Enterprise Java and Web Developers - 2021-12
Junit5

设置详细

设定junit
指定JUnit5在modulepath下面

报Exception原因

JUnit5不应该指定到Modulepath
应该指定到Classpath下面

解决错误设定

在classpath下面指定JUnit 5

重新设定之后再运行,JUnit就能正常运行了

在这里插入图片描述

举报

相关推荐

0 条评论