I'm trying to add some external jar files in my project. Anyone tell me how to add external jar files to current project? Thanks in Advance.
4 Answers
Here is how you can do that,
1.) Right click on your Project->Properties->Java Build Path->Libraries->Add External JARS...
2.) You can create a lib
folder in your Project folder and copy the JAR file in that folder, then
right click the JAR file from the eclipse Package explorer -> Build Path-> Add to Build Path

- 67,150
- 23
- 161
- 242
In eclipse right click on your project -> properties->java build path ->Libraries tab

- 23,865
- 10
- 55
- 63
If you're using Eclipse, check the manual: http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-properties-build-path.htm :
[..] the project properties (Project > Properties > Java Build Path)
And then click 'Add external JAR'.
If you're using IntelliJ, check out these StackOverflow questions: how to add directory to classpath in an application run profile in intellij idea? and how to add a jar to my lib/ directory in intelliJ and have the classes available for my web.xml?.
Follow this steps : right click project
open properties of project ->java build path -> libraries -> add external jar
path of ur jar file
hope this will help u....

- 3,165
- 1
- 22
- 26