[英]Having trouble attaching JUnit sources in Eclipse Indigo
I've been trying to attach JUnit sources in my Eclipse Indigo. 我一直试图在我的Eclipse Indigo中附加JUnit源代码。 From within the IDE it doesn't work - there's a non-modifiable no source attachment (why?) .
在IDE中,它不起作用-没有不可修改的无源附件(为什么?)。 I tried following the advice in " How do I configure JUnit's Source in Eclipse? ", with JUnit version 4.8.2, but that didn't work.
我尝试按照“ 如何在Eclipse中配置JUnit的源代码? ”中的建议使用JUnit版本4.8.2,但这没有用。 It's possible I didn't follow the instructions there just right, but I don't see any indication of where I could have made a mistake.
我可能没有正确地按照此处的说明进行操作,但是我看不到任何可能出错的迹象。
What can I do? 我能做什么?
You should download JUnit source jar manually and it put them to the plugin folder (don't forget eclipse -clean). 您应该手动下载JUnit源jar,并将其放到plugin文件夹中(不要忘记eclipse -clean)。
Download JUnit jars from here ftp://ftp.osuosl.org/pub/eclipse/eclipse/updates/3.7/R-3.7.1-201109091335/plugins/ (*junit*, source files and jdt). 从此处ftp://ftp.osuosl.org/pub/eclipse/eclipse/updates/3.7/R-3.7.1-201109091335/plugins/(* junit *,源文件和jdt)下载JUnit jar。
This is not last version, but you can easily change it. 这不是最新版本,但您可以轻松对其进行更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.