Unlike other NetBeans project types, Mobility projects are based on the concept of a single source root that results in a single distribution JAR file. It is possible to simulate multiple source roots by setting up one project for each source root and then using project dependencies. It may be helpful to think of the source root containing the MIDlet as the application project, while all other source roots should be considered library projects.
To structure your project dependencies:
Using Dependencies with ConfigurationsIf your Library project and Application project make use of project configurations, it is important to take care when setting up the project dependencies. Although it is tempting to assume that the Application project will automatically depend on the correct version of the Library project (based on configuration name matching), this is not the case. Assume, for example, you are working with an Application project that has configurations named SmallScreen and LargeScreen, and a Library project that has two configurations of the same name. To set up the dependency between the two projects:
|