the call: System.getProperty("java.class.path")
only returns your System class path - 
the jars in /lib and the classes in /classes are dynamically loaded by a
ClassLoader in Tomcat - they do not become a part of your System class path.

Tim Julien
HP Middleware

-----Original Message-----
From: Dalia, Keith A - TOS-DITT1 [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 1:56 PM
To: '[EMAIL PROTECTED]'
Subject: Classpath Question


I have a question about how the dynamic class path is set based upon  the
.war file.  I know that whatever classpath is set prior to tomcat startup is
appended to the classpath in the startup.bat.  Furthermore, whatever .jar
files that reside in tomcat_home\lib are also dynamically added to the
classpath and tomcat_home\classes is also put on the classpath.  I have
verifed this by call a
System.getProperty("java.class.path") from a servlet.  What I don't fully
understand is how the contents of the .war files \lib path are seen by
tomcat since they don't appear when I call
System.getProperty("java.class.path").  I would really appreicate a bit of
clarity on this.


TIA, Keith

Reply via email to