It's not a secret anymore!*
The moose likes IDEs, Version Control and other tools and the fly likes Do you add External jars manually required for a project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Do you add External jars manually required for a project" Watch "Do you add External jars manually required for a project" New topic
Author

Do you add External jars manually required for a project

Karnati Sudhakar
Ranch Hand

Joined: Aug 26, 2008
Posts: 270

I was running the examples given in the chapter 3 of Spring in Action examples.When i am running these examples i was getting some error so i googled and found out that it needs cglib.jar so added manually.

Do you add jars required for a project manually every time you create project.Whenever i create spring project in Eclipse i add commons-logging.jar,spring.jar etc..manually...

I feel adding required jar files for a project should be done automatically.


Regards
Sudhakar
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

Maybe you should have a look at Maven then (or Ivy, if you prefer Ant).
Karnati Sudhakar
Ranch Hand

Joined: Aug 26, 2008
Posts: 270

I am not a professional developer just learning Java by my self so did not know about this fact.Anyway i will learn how to use maven to avoid that tedious task of adding jars manually.

I think this is the lamest doubt in the world of J2EE
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

Karnati Sudhakar wrote:
I think this is the lamest doubt in the world of J2EE


Nah. We get lots of lamer stuff than that.

Maven is good because once you get a whole raft full of projects going, you don't clutter up your system with duplicate copies of common jars.

Another approach I've used is to create a "lib" project that holds master copies of common jars and have the child projects copy from there when I do a build. I use this approach with Ant sometimes.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do you add External jars manually required for a project
 
Similar Threads
How to configure Struts 2 in eclipse
Error on making a project with m2e + eclipse indigo + springmvc-archetype
IntellijJ, I have these Jars
How to use Grails' (ivy) dependency cache in IDE?
war file question