0

I have one jar file, named pwd.jar and I want to use that in another project named sample.

How can I do that? What are all the steps I should perform?

Note: I am using Eclipse IDE

ericbn
  • 10,163
  • 3
  • 47
  • 55
Syed
  • 33
  • 2
  • 10
  • you can set the classpath properly. Use an IDE like Eclipse for doing this with some help. http://stackoverflow.com/questions/18413014/run-jar-from-command-line-and-specify-classpath – aksappy May 14 '15 at 09:02
  • There are many ways to do that. Since 2002 there has been a tool called maven that provides a systematic way to handle dependencies between projects; later, another tool called ivy was introduced that focuses purely on dependency management. – Erwin Bolwidt May 14 '15 at 09:50

1 Answers1

1

Right click your project-> properties->Java Build Path -> Libraries tab -> Add External jar, and browse your jar

Cheers

stackMan10
  • 732
  • 6
  • 25