Eclipse3.6 添加JUnit源代码

Eclipse中无法查看JUnit源代码,也无法设置源代码的jar。



解决方法:

1.  下载org.junit.source_4.8.1.v4_8_1_v20100427-1100.jar,放到eclipse\plugins下。

2.  修改 eclipse\configuration\org.eclipse.equinox.source\source.info,添加一行:

 

org.junit.source,4.8.1.v4_8_1_v20100427-1100,plugins/org.junit.source_4.8.1.v4_8_1_v20100427-1100.jar,-1,false


重启Eclipse。

 



测试版本:Eclipse 3.6 Helios Service Release 2 Build id: 20110218-0911

其他版本的Eclipse未测试。


附上 org.junit.source_4.8.1.v4_8_1_v20100427-1100.jar 下载地址:

http://download.csdn.net/detail/xuefeng0707/5646421

转载请标明出处:http://blog.csdn.net/xuefeng0707/article/details/9168997

参考:http://stackoverflow.com/questions/1084176/how-do-i-configure-junits-source-in-eclipse


 

posted @ 2013-06-25 20:04  爱生活,爱编程  阅读(332)  评论(0编辑  收藏  举报