Normally I create helper classes and build a jar file, then put jar file in the lib directory of the web app. But if I want the helper class in the lib directory to access class in the web application src directory, what should I change?
What's that "src" directory? The standard place to put classes in a web application, if they aren't in a jar, is in the WEB-INF/classes directory. Classes in jar files in the WEB-INF/lib directory can access those classes because both locations are in the classpath of the web application.
Joined: May 12, 2005
You are right. WEB-INF/classes is the place for compiled classes. When I write java classes, it's in src.
Anyway, my question is about how to let a java class in the jar in the lib directory to access a java class not in the lib directory.