Reputation: 37
I trie to add a package to eclipse, i tried to put the folder in the com forlder but i still have an error
Upvotes: 0
Views: 756
Reputation: 1
Now you can Add other projects(from Projects Tab) in your current project build path to use their API's or you can add .jar (from Libraries Tab) to your current project.
To Add other Project into your current working project : a. Click on Projects Tab b. Click in Add c. select project/s that you want and Click on Ok.
To Add external .jars into your current working project : a. Click on Libraries Tab b. Click in Add External Jars c. select .jars that you want and Click on Ok. You can also select jars from other projects from your current workspace.
Upvotes: 0
Reputation: 709
Your screenshot looks like you want to use a library and don't know how to reference it from your project.
What you should do is:
MW K 1
in EclipseJava Build Path
Libraries
.jar
file).This way your project will find the packages and classes which are located in this library and you will be able to use them in your project.
You should also be aware of the fact that in order to run your program, the library must be available at runtime, too.
Upvotes: 1