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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:58:00+00:00 2026-06-11T16:58:00+00:00

I am starting web development with JSP, and I have been working on my

  • 0

I am starting web development with JSP, and I have been working on my application or a while. I have a custom logging class, which is in my personal library. I don’t want to export the library to a jar file every time I make a change, so I have added my Eclipse library to the build path by right clicking on my web app, going to Build Path --> Projects --> Add --> (library name).

Eclipse does not pick up an error when I import it into my Java classes. Although, I call a method from one of my application’s classes, (which has imported my custom logging class), and it throws a ClassNotFoundException.

I have looked online, and (correct me if I’m wrong) it looks like the way to solve this is to export my library to a jar file and put it under the /(project)/WebContent/WEB-INF/lib folder, and then put it into the build path.

I do not want to do this, as I make many changes to my library, very frequently. So how can I get Tomcat to recognize that my library is in the build path without exporting it?

Thanks in advance.

  • 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-11T16:58:01+00:00Added an answer on June 11, 2026 at 4:58 pm

    I usually try not to respond to a question with a suggestion that you do things completely differently, but in this case, I think it’s warranted.

    So, first..logging is a “solved problem”. It is exactly the sort of wheel that most people shouldn’t re-invent. Take a log at LogBack and SLF4J. The most that you should have to do, if you have some really extremely unique situation, is to implement a new Appender.

    Now, to the more general question.
    A suggestion that I often make to struggling developers is remove their project’s dependence on any particular IDE. You’ll have a much easier time of things if your project is configured so that it can be built, debugged, and packaged from the command line. You can then continue to use your IDE – just don’t make your project dependent on it.

    There are a number of ways to do this, but a popular one that works fairly well, and integrates with Eclipse and many other IDEs, is Maven.

    If both your utility library and your project that depends on it are built with Maven, then you can simply declare (in you project’s Maven configuration) that it is dependent on your utility library.

    Then you can simply do ‘mvn install’ in your utility library’s project, and your dependent project will pick up the change.

    Once you have all of that working, you can import the Maven projects into Eclipse, and it will all work there as well.

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

Sidebar

Related Questions

I'm starting the development of a C#/ASP.net web app, within which I use the
I am starting a web application project that will have an Adobe Flex front-end
I'm starting a new job soon, in web-app development. While I'm experienced with programming,
I'm just starting web-developing now (I do have experience with C#). And I've seen
I'm looking at starting a new web app which needs to be secure (if
I'm on the verge of starting a new web application that is likely to
Hi I'm starting a new web development project with my team using Hibernate and
I'm starting to do some web development and I was learning about forms and
I am new to mobile development, but have some experience with web app development.
At work we are inte process of starting development on a new web-based product.

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.