How do I have access to external java files in eclipse that are not part of the project? -
i'm contribute project lot of people have worked on earlier. lets have folder hierarchy.
_____c1 - .. ______b1--|_____c2 - .. | --| _____c3 - .. |______b2--|_____c4 - ..
and c- folders contain different existing java classes. lets need create class in folder c1, need use of classes in folders c2, c3, c4 .
(by using mean "import" , use object instances in class in folder c1)
i can't seem figure out how works. other folders no eclipse projects, folders .java classes in it. don't know @ point in folder hierarchy need create project can have access classes in folder a, nothing seems work.
i tried adding folder b2 build path , folder a. still when i'm trying do:
import a.b2.c3.someclass;
or
import b2.c3.someclass;
it won't work.
thanks in advance
i figured out myself . maybe can helpful else. created .jar out of folder , added external library project created in folder c1 via properties > java build path > libraries > add external jars
now can use of classes in in project in c1.
Comments
Post a Comment