Eclipse and test packages now in white and un-run

1、症状

I have an issue with Eclipse and my test packages. They show as white icons instead of the default brown color normally used in Eclipse for packages... See image below:eclipse screen captureeclipse

what is more I can't run my tests from Eclipse now. I must be missing a basic configuration somewhere.ui

Can anyone help?spa

2、解决方法

找到了缘由,问题就比较好解决了。就是我把资源从classpath 里面删除了。orm

I think these packages have been 'excluded' from the build path. (That's how I can make packages/classes look that way)three

Right click on the "given project" --> "Build Path" --> "Configure build path".ip

See the "Source" tab. For each source folder you have three subsections: Included, Excluded, Native Library location.资源

Check if there are files/packages excluded.it

相关文章
相关标签/搜索