Class or interface name 'identifier' conflicts with package 'identifier'
The specified class or interface name conflicts with a package name. This error can be caused by declaring a class or interface within a package with the same name as a subpackage. Rename either the subpackage or the class or interface that is causing the ambiguity and compile again.
The following example illustrates this error:
//located in a file called Plastic.java
package Boxes.Dishes;
public class Plastic{
//do something here
}
//located in a file called Dishes.java
package Boxes;
public class Dishes{
//error: the name 'Dishes' is also the name of the subpackage
}