circular dependency between jars (correction)

Discussion in 'Java' started by DinkyToy, Apr 7, 2005.

  1. DinkyToy

    DinkyToy Guest

    sorry correction:


    If you have to following case:

    2 soon to be compiled jars:

    here.jar:
    org.here.SomeInterFaceA
    org.here.impl.SomeImplementationA implements org.here.SomeInterFaceA
    and imports org.there.SomeInterFaceB

    there.jar:
    org.there.SomeInterFaceB
    org.there.impl.SomeImplementationB implements
    org.there.SomeInterFaceB
    and imports org.there.SomeInterFaceA

    Is it possible to compile this stuff, or must the interfaces go
    outside the two jars?
     
    DinkyToy, Apr 7, 2005
    #1
    1. Advertising

  2. DinkyToy

    John McGrath Guest

    On 4/7/2005 at 10:13:56 AM, DinkyToy wrote:

    > Is it possible to compile this stuff, or must the interfaces go
    > outside the two jars?


    What gets placed in a JAR file has nothing to do with compilation. You
    can compile the classes together, then build the two JAR files containing
    the classes (interfaces) that you want them to contain.

    That said, I wonder about why you want to do this. You will not be able
    to use either JAR file without the other, so why make two separate JARs?

    --
    Regards,

    John McGrath
     
    John McGrath, Apr 7, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ike
    Replies:
    6
    Views:
    1,058
    Andrew Thompson
    Sep 24, 2004
  2. DinkyToy

    circular dependency between jars

    DinkyToy, Apr 7, 2005, in forum: Java
    Replies:
    0
    Views:
    401
    DinkyToy
    Apr 7, 2005
  3. Replies:
    5
    Views:
    9,036
  4. JavaEnquirer
    Replies:
    2
    Views:
    522
    JavaEnquirer
    Feb 22, 2006
  5. Stefan Seefeld
    Replies:
    1
    Views:
    328
    Michele Simionato
    Jan 19, 2004
Loading...

Share This Page