What difference between adding library by “add external jar” and putting those jars to web-inf\lib?
What should I do for adding my external jars to my web dynamic project in eclipse
Add by class-path or putting into web-inf\lib folder?
Regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you add jar in the web-inf folder, they are packaged as part of your war file(assuming using some build tool like ant) and when your application is deployed or run it resolve dependencies using those jars.
But when you add jar in the eclipse using add external jar, it is just part of .classpath file for eclipse and resolve dependencies with in eclipse and doesn’t get packaged. It can be used when you don’t want some jar to be packaged with application like servlet jars which are already present in your server libraries.