Oracle JDeveloper 12.2.1.3.0 on Windows 7 with JDK 1.8.0_161. I am migrating legacy code which has circular dependencies, e.g. project A contains class X which references class Y which is in project B and vice-versa. In the project properties of Project A, I added a dependency to Project B and in Project B there is a dependency on Project A. When I try to build Project A, I get an error message saying it can't find class Y and when I build Project B, I get an error saying it can't find class X.
The code was originally developed using Eclipse IDE and it lets you configure it to accept circular dependencies or not. How can I resolve this circular dependency problem? The only thing I found on the Internet so far is someone saying that circular dependencies need to be eliminated and suggesting a tool to help discover the circular dependencies - but of-course no advice on how to eliminate them.