Junior222
Junior222

Reputation: 833

Add reference to library in Eclipse

I am trying to create an Android application with Java and Eclipse. Previously I have written code with Visual Studio and now i want to do it with Eclipse.

I have a project and I want to add a reference to some another library to it. How can I do it? In Visual Studio i could click the right mouse button, select "Add Reference" item in context menu and find wanted library in standard .NET assemblies or any other. But I don't know how I can do it in Eclipse.

In other words i need an analogue of "Add Reference" from Visual Studio

Upvotes: 1

Views: 3870

Answers (1)

Zach Farley
Zach Farley

Reputation: 11

Adding a resource in Eclipse is called adding a library.
What you do is:
1. Right Click on your project
2. Click Properties
3. Click Java Build Path
4. Click Add External Jars (Make sure you are in the Libraries Tab)
5. Find your file in your computer
6. Click Ok, then Ok again
7. You're done!

I hope this helps

Upvotes: 1

Related Questions