Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cycle in Eclipse

Tags:

java

eclipse

If I open two Java projects in Eclipse which depend on each other, I have to add dependencies between these two projects in the Build Path (Properties -> Java build path). This works fine for one way, but why doesn't allow Eclipse to set the dependencies vice versa? The following error message occurs:

A cycle was detected in the build path of project 'A'

and

A cycle was detected in the build path of project 'B'

I know what's causing this error but i wonder why exactly this isn't allowed. Thanks.


1 Answers

Well, if you need to have a cycle you can allow it by changing from error to warning in Window->Preferences->Java->Compiler->Building->Build path problems -> Circular dependencies.

But I still think that is a bad desing.

like image 120
javilaureano Avatar answered Jan 22 '26 08:01

javilaureano



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!