Where do Java packages come from?
A project contains only files and folders. The notion of a Java package is introduced by a Java project’s class path (at the UI, the Package Explorer presents the packages as defined by the classpath). Tip: If the package structure is not what you expect, check out your class path. The Java search infrastructure only finds declarations for and references from Java elements on the class path.