java - eclipse mistakenly interprets packages as "resources", or source folders -
I am importing an existing source tree as eclipse java project. When I do, I get errors in classes in the following rows (like mycompany.logging.LogEntry):
package mycompany.logging does not match the expected package ""
The problem is that Eclipse does not know that the directory src / mycompany / logging is a package directory --- instead it thinks that this is the source folder, which corresponds to SRCR, and that part of the log indicator default Package in that folder
Can anyone give advice? Thanks a lot.
Do you have the source path of the src configured in the imported project?
Then you should look like a package:
mycompany.logging
Also see
Comments
Post a Comment