Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6822243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:38:23+00:00 2026-05-26T21:38:23+00:00

I wonder why Java webapps specifications imposed a specific directory for dependencies: /WEB-INF/lib .

  • 0

I wonder why Java webapps specifications imposed a specific directory for dependencies: /WEB-INF/lib.

Indeed, why don’t use classic /META-INF/MANIFEST.MF file?

Someone will tell that webapps are so more secure because libs are physically integrated in WAR file.

But, if we think so, we could wonder :

Why for a simple Java application (simple JAR), there’s no special directory for dependencies? It could be also more secure because no risk to have a wrong classpath (modified improperly for instance) in manifest file.

Other will tell that webapp is designed to be portable, so benefit of /WEB-INF/lib is to not worry about links dependencies.

I’m curious to know your opinions on the subject.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:38:24+00:00Added an answer on May 26, 2026 at 9:38 pm

    A jar is a standard library. For normal utility jars its probably better to keep them separate. If a library has a dependency on a different library and you need that dependent library more then once you would waste space, memory and maybe incorporte problems to due different library versions.

    The web application however is an application bundle. You have to make sure that everythings works so you add the required libraries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing java enterprise web application using EJB 3.1 and I wonder which technology
I don't have any knowledge of Java platform and I wonder which tools (and
Using Google Analytics with my Web Pages / Java Script application I just wonder
I have just started to use Eclipse for my Java programmaing. I just wonder
I'm not complaining, just wonder. Why Java use top left point of the drawing
I wonder why smalltalk doesn't make use of java-style inner class. This mechanism effectively
I wonder if anyone uses commercial/free java obfuscators on his own commercial product. I
Just wonder how much cost to raise a java exception (or to call native
I wonder if this is possible with ant and java : I have a
I wonder how is the best way to integrate Java modules developed as separate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.