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.