#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2006
    Posts
    2
    Rep Power
    0

    Eclipse and Inter-project dependencies


    Hi all,

    I am developing a j2me library for a device.
    I want Project A to be the library project. This will have a set of packages all with the structure..

    au.com.company.device.<some components name>

    Next I want Project B to be a test application which uses the classes of Project A.

    In Project B there is the package..

    au.com.company.device.testmidlet

    This seems like a simple enough scenario, and yet I cannot get it to work in Eclipse IDE.

    What I have done:
    I have both the projects compiling when the dependency is broken (by commenting out code).
    In Project B's properties, 'Java Build Path', on the 'Projects' tab I have Project A selected.
    Project A has its source folder selected for export.
    When using the classes defined in Project A in code in Project B, eclipse's auto-complete finds them ok.

    However - when I try and build Project B with the dependence on Project A, I get the compile error:

    package au.com.company.device.logging does not exist

    Is there something obvious I am missing? I trully thought this would be a simple matter. Are the names of the packages in the two projects somehow conflicting?

    Any help very much appreciated, cheers.

    Luke
  2. #2
  3. (retired)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2003
    Location
    The Laboratory
    Posts
    10,101
    Rep Power
    0
    Hello hiero, welcome to devshed.

    I've moved this thread into Java Help, as the helpful javanuts in here can probably answer this more easily than the Other-Programming-Languages posse.

    --Simon
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2006
    Posts
    2
    Rep Power
    0
    Thanks for that!

IMN logo majestic logo threadwatch logo seochat tools logo