Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDeveloper Build Fails Due to Circular Dependency Between Classes in Different Projects

Avi AbramiApr 1 2018 — edited Apr 2 2018

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.

This post has been answered by Avi Abrami on Apr 2 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2018
Added on Apr 1 2018
2 comments
366 views