0

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 Answers4

2

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
Lalit Poptani
  • 67,150
  • 23
  • 161
  • 242
0

In eclipse right click on your project -> properties->java build path ->Libraries tab

Vineet Shukla
  • 23,865
  • 10
  • 55
  • 63
0

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?.

Community
  • 1
  • 1
Jacob Ras
  • 5,974
  • 1
  • 28
  • 26
0

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....

Richa
  • 3,165
  • 1
  • 22
  • 26