I am importing an existing source tree as an Eclipse Java project. When I do this, I get errors in classes (e.g. mycompany.logging.LogEntry) in the following lines:
The package mycompany.logging does not match the expected package ""
The problem is that Eclipse does not understand that the src / mycompany / logging directory is a package directory - instead, it considers it to be the source folder of its choice, similar to src /, and that LogEntry is part of the default package in this folder.
Can anyone advise? Thank you very much.
source share