JUnit4.11命令行运行时报错Exception in thread "main" java.lang.NoClassDefFoundError: org/hamcrest/SelfDescrib

以下为报错内容:


JUnit4.11命令行运行时报错Exception in thread "main" java.lang.NoClassDefFoundError: org/hamcrest/SelfDescrib_第1张图片


解决办法:

加入org.hamcrest.core_1.1.0.v20090501071000.jar路径


JUnit4.11命令行运行时报错Exception in thread "main" java.lang.NoClassDefFoundError: org/hamcrest/SelfDescrib_第2张图片

你可能感兴趣的:(java,JUnit)