• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do you add External jars manually required for a project

 
Ranch Hand
Posts: 270
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe you should have a look at Maven then (or Ivy, if you prefer Ant).
 
Karnati Sudhakar
Ranch Hand
Posts: 270
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 27819
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic