tags:

views:

34

answers:

2

hi, i want have access of a project(like it classes) into another project.Can i use ClasLoader for that? If so how can i do that?

Ex-I want to access classes in Project A in Project B.

+1  A: 

Assuming you're talking about Eclipse and you want the classes of "Project A" to be accessible to the code of "Project B":

Right click on "Project B" -> Properties -> Java Build Path -> Projects -> "Add..." -> Add a check-mark next to "Project A" -> OK

Itay
how can i write code for that. It should be done by coding.
Steven
A: 

Hi, Because of your tag (eclipse) I suppose you have 2 bundles and you want to access from one bundle to another bundles classes. In OSGI this is done using Export-Package and Import-Package properties in the bundle manifest file.

Hope it helps

Mikel