publish the new class for other projects in a workspace

HI, I have a workspace, which contains 4 different projects.

I package all the project under the same path as the package com.xxx.app.version1;

I made a new class, say DataStruct, it will be used in several projects.

If I only set the DataStruct in a project, how the other projects can reference this class?

I do not put the same class file in each project, because it causes problems of consistency.

Thank you

Jerry

solved.

My own solution:

Add a new project name xxlib in this workspace.

Add all the classes newly defined in this project. Pack them as com.xxx.lib;

first build the jar of this xxxlib. then add this jar file into other projects that are in need of new classes.

(for each project, the properties-> build-> add jar)

in the project files that are in need of the new class, add "import com.xxx.lib;"

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for