June 12th, 2006, 10:31 PM
Eclipse and Inter-project dependencies
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..
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.
June 12th, 2006, 11:19 PM
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.
June 13th, 2006, 12:37 AM