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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:52:28+00:00 2026-06-03T10:52:28+00:00

I need my webapp to use the class files in the jar I produced

  • 0

I need my webapp to use the class files in the jar I produced instead of the directory /classes.
If I add my jar to the lib directory, will my application run without having to add a mapping to my web.xml ?

  • 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-03T10:52:36+00:00Added an answer on June 3, 2026 at 10:52 am

    Source code is for humans, not for webapps. You need to compile the classes, package them into a jar file and place it inside WEB-INF/lib.

    Edit:

    If you put the jar file inside the WEB-INF/lib directory, the webapp will pick it up automatically. No need to add anything to the web.xml.

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

Sidebar

Related Questions

As a homework i need to make a webapp that will play an mp3
If I have classes that need to be shared between my webapp and Tomcat
I do not use JasperServer, instead I created a webapp using JasperReport 4.0.2 directly.
I have a server side code to process uploaded binary files: class UploadHandler(webapp.RequestHandler): def
We use Spring + Hibernate for a Webapp. This Webapp will be deployed on
I plan on building a simple, yet high usage webapp and need to settle
I am building a webapp with jquery mobile where I need to get data
i have a mixed aspx/MVC webapp project and need to rewrite incoming URL's either
I have to create a progress bar in a webapp. I need a thread
I'm currently running a working Spring + Apache Tiles webapp. I need to show

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.