• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

recursive dependency!? (circular dependency) - Resolved

 
Douglas Mendonça
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this situation:

Module A
Module B

I can't compile Module A with <javac> because some class have a dependey with Module B, and I can't compile Module B before because some class have a dependey with Module A.

And now??
Is there a solution??

ps: sorry may bad english
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33689
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Douglas,
Two main choices:
1) Compile them at the same time into one result
2) Cleaner - get rid of the circular dependency by moving the lower level code to a third jar
 
Douglas Mendonça
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Douglas,
Two main choices:
1) Compile them at the same time into one result
2) Cleaner - get rid of the circular dependency by moving the lower level code to a third jar


Thanks a lot Jeanne, I choice number one. Here my solution:

1 - I compile the two Module at same time:

2 - I generated the jar without the classes of Module B

3 - With the jar of Module A it is easy, just put the jar in the classpath of ModuleB compilation.

Thanks a lot one more time.

ps: sorry may very bad english
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic