简体   繁体   中英

Having trouble attaching JUnit sources in Eclipse Indigo

I've been trying to attach JUnit sources in my Eclipse Indigo. From within the IDE it doesn't work - there's a non-modifiable no source attachment (why?) . 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. 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).

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).

This is not last version, but you can easily change it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM