Link to home
Start Free TrialLog in
Avatar of leeskelton83
leeskelton83

asked on

Copy lib folder into new project

Hi:
I am really new to java and am working in Eclipse. I am working with an a existing project that I have downloaded. I have been told to copy over the lib folder and I will have access to all the classes in the project. Unfortunately don't know how to copy over the files into my new eclipse project. Please help.
Avatar of for_yan
for_yan
Flag of United States of America image

You can write-click on your project and select Import from the drop-down menu
I think it dependes - do you want to import java source codes or are do you have
thiord party jar library? Please, elaborate
Avatar of leeskelton83
leeskelton83

ASKER

Thanks. I did import the lib folder which contained a jar and added it to the build path. Now though when I try to use one of the classes it says the jar has no source files..
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks I have it now.
If you really want to import class library - to use classes of that library but not to modify it,

then you right-click on the project and go to Build Path --> addexternalArchive and select your jar with the classes as it is

Avatar of Mick Barry
you don't actually need to import anything. you can just copy them directly in.