Right click on the project in which you want to put jar file. A window will open like this

Click on the AddExternal Jars there you can give the path to that jar file
Answer from Ram kiran Pachigolla on Stack OverflowRight click on the project in which you want to put jar file. A window will open like this

Click on the AddExternal Jars there you can give the path to that jar file
As of rev 17 of the Android Developer Tools, the correct way to add a library jar when.using the tools and Eclipse is to create a directory called libs on the same level as your src and assets directories and then drop the jar in there. Nothing else.required, the tools take care of all the rest for you automatically.
How do I add jar files to classpath? Specifically, I am using Eclipse and I want to add Quartz scheduler jar files
java - Changing classpath in Eclipse - Stack Overflow
A .jar added to the Eclipse classpath is missing at runtime
Can a java .classpath refer to a .jar file within the eclipse plugin folder independant of install location? - Stack Overflow
Videos
Try this:
Project -> Properties -> Java Build Path -> Add Class Folder.
If it doesnt work, please be specific in what way your compilation fails, specifically post the error messages Eclipse returns, and i will know what to do about it.
You can create new User library,
On
Copy"Configure Build Paths" page -> Add Library -> User Library (on list) -> User Libraries Button (rigth side of page)
and create your library and (add Jars buttons) include your specific Jars.
I hope this can help you.
To change the project JRE in Eclipse, you have to go into the project specific settings (select the project folder in the Package Explorer, then go in the project and then click on properties), where you will find the Java Build Path related settings.
In the Build Path section of the project settings, you have to go into the Libraries Tab:

From here, you have to double click on the JRE System Library and change the execution environment to JavaSe 1.6:

Since tools.jar is an JDK library you can add it for all projects by configuring your Execution Environment. In Preferences go to Java > Installed JREs select your JDK and click on Edit.... In the new Dialog you can add external jars like tools.jar to your execution environment. I hope you have installed the JDK 1.6 and not only the JRE 1.6 as you have written in your question.
