On Thu, May 20, 2004 at 10:02:27AM -0400, Zollinhofer, Matt wrote:
: So, it works, but I don't really understand the necessity of having the
: particular jar file on the classpath.

Is this a confusion of
        "class directories vs JAR files"
or
        "webapp class search paths"
?

JAR files and directories are equivalent in Java: they both contain a
hierarchy of classes and resources.  (You can think of a class dir as an
exploded JAR file.)

When building on the commandline (with ant or straight javac) you must
explicitly set the classpath.

With webapps, it's a little different: JAR files from certain
directories are automagically included for you.  Imagine the
container, on startup, scans for WEB-INF/lib/*.jar and puts those in
its search path.

That's not a Tomcat thing; that's the servlet spec.

-or did I miss your question entirely?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to