`
wenjinglian
  • 浏览: 807693 次
  • 性别: Icon_minigender_1
  • 来自: 株洲->深圳
社区版块
存档分类
最新评论

java .lang .SecurityException: class "org .hamcrest .Matchers "'s signer informa

    博客分类:
  • JAVA
阅读更多

 

java .lang .SecurityException: class "org .hamcrest .Matchers "'s signer information does not match signerinformation of other classes in the same package

该错误的原因是:我在这里引用了hamcrest-all,而JUnit内部也使用了hamcrest,所以在加载类的时候版本顺序出了错误,只要调整一下hamcrest-all包的位置改在JUnit包之前即可

 

 

修改工程下 .classpath 文件: 如下图将 hamcrest-all 引入移到junit前


 

参照:

http://qiuguo0205.iteye.com/blog/555693

  • 大小: 17 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics