您的位置:首页 > 编程语言 > Java开发

Eclipse and test packages now in white and un-run

2016-01-22 00:00 615 查看
摘要: Eclipse and test packages now in white and un-runnable
eclipse工程下面的package包成为White,并且相应的Java文件不可以运行。

一、症状

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:


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

二、解决方法

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

I think these packages have been 'excluded' from the build path. (That's how I can make packages/classes look that way)
Right click on the "given project" --> "Build Path" --> "Configure build path".
See the "Source" tab. For each source folder you have three subsections: Included, Excluded, Native Library location.
Check if there are files/packages excluded.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息