Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question about placing jars in a Web Applicaation

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I have a question may be silly to some one .
My question is that , when we are working with a Web Application , when do we need to place the jar fie inside the WEB-INF/lib , rather than simply making them aviable in the class path (FOR EXAMPLE ADDING TO Build path in Eclipse ) ??

Could anybody please tell me the answer ??

Thank you very much .
 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to do both , set them in the classpath and also place them under the lib folder
 
Nam Ha
Ranch Hand
Posts: 50
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my opinion, putting jar files under WEB-INF/lib for portability, i.e you can deploy the Web Archive (WAR) file anywhere without worrying to putting jars to the class path.
 
bhanu chowdary
Ranch Hand
Posts: 256
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This would clear your doubts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic