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 9194669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:28:06+00:00 2026-06-17T21:28:06+00:00

How can I configure a Java Dynamic Web Project in Eclipse so the WEB-INF/lib

  • 0

How can I configure a Java Dynamic Web Project in Eclipse so the WEB-INF/lib folder is located in a sub folder?

For example, say I wanted my “lib” folder to be located here:

src/main/webapp/WEB-INF/lib

and my webapp root is here:

src/main/webapp/

How do I configure this in Eclipse? I know I could just “add the jars”, but I’d like them to be organized under my “Web App Libraries” section in the Libraries section of my app’s build path.


What I’ve tried:

I’ve tried adding “Web App Libraries” by doing the following, but it doesn’t detect the jars in my “src/main/webapp/WEB-INF/lib” folder:

  • Project | Properties | Java Build Path | Libraries | Add Library | Web App Libraries

I’ve also ensured that the root of my web app (src/main/webapp) is in my “Source folders on Build Path” as well, with no luck:

  • Project | Properties | Java Build Path | Source | Source folders on Build Path

I know it can be done, as I’ve got another project that has this configured and working, but I’m not sure how to duplicate the configuration.

Thanks!

  • 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-06-17T21:28:07+00:00Added an answer on June 17, 2026 at 9:28 pm

    Turns out that I could get this to work by adding the following file to my project:

    .settings/org.eclipse.wst.common.component

     <?xml version="1.0" encoding="UTF-8"?>
      <project-modules id="moduleCoreId" project-version="1.5.0">
          <wb-module deploy-name="test1">
              <wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
              <property name="context-root" value="test1"/>
              <property name="java-output-path" value="/test1/build/classes"/>
          </wb-module>
      </project-modules>
    

    I found this out by creating a brand new “Dynamic Web Project”:

    • “File | New | Dynamic Web Project”
    • Go through the steps until you get to the last one called “Web Module”
    • There I could specify a “Content Directory” for the app, and I used “src/main/webapp/”.
    • This generated a new project that worked as I liked. I then searched the project folder for “src/main/webapp” and found it in this xml file, which I just copied into my project, and changed all references from “test1” to my projects name, and it worked!

    Note:
    You may also need to add “Web App Libraries” to your project as detailed in my question.

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

Sidebar

Related Questions

I have implemented Java Dynamic Project in Eclipse with Tomcat 7. I can run
We can configure a library's (jar) javadoc in a Project in Eclipse by: -
I have a Eclipse Dynamic Web Project which host a simple servlet and runs
How can I configure a Tapestry5 project to run standalone (via java -jar) with
Can I configure my C# application to limit its memory consumption to, say, 200MB?
I have a java project(note:- its not a web project).I am using log4j to
I have a Java project and Flex together in Eclipse. The Java is the
How can I configure hibernate event listeners post-insert, post-delete, post-load, post-update in java configuration?
I use Spring to configure my Java Web App and in my Spring configuration
You can configure your Java GAE app with: <threadsafe>true</threadsafe> to allow your app instances

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.