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

相關文章
相關標籤/搜索