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文件不可以运行。
what is more I can't run my tests from Eclipse now. I must be missing a basic configuration somewhere.
Can anyone help?
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.
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.
相关文章推荐
- [Java] NoClassFoundException和NoClassDefFoundError
- 资源的自动释放的try-with-resources
- [Java] Hashmap的内部实现
- Java 虚拟机-垃圾收集算法
- spring IOC配置
- Java可变参数关于参数列表含可变参数的方法重载的注意点
- Java字符串简单练习
- Spring 中的 bean
- java的classpath和path理解
- java_Observer Design Pattern
- eclipse在Ubuntu12.04下出现错误:JVM terminated. Exit code=13 /usr/bin/java的一种解决办法
- Java并发编程知识总结
- JVM学习05-字节码执行过程和JVM指令集
- Java防盗链(防止网页从其他地方直接访问)
- 1.21 Java基础总结 数组知识
- 从Java程序猿到产品经理
- spring ioc
- spring IOC容器
- Eclipse设置自动换行
- Java [Leetcode 66]Plus One