Search code examples
javajar

How should i export jar when they depend on each other?


If I have 3 java projects: A, B and C

Where A use classes from B, and B use classes from C

How should I export the project A?

Should I export C, add it to the project B and then export B and add it the jar to A?

And if I have to update C, I have to repeat what I have done before?


Solution

  • You can add both to project A

    You don't have to add C to B and B to A, You can add C and B to A

    Your jar file will look the same if you add C to B and then B to A or add C and B to A