tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wentzel <Michael.Went...@aswethink.com>
Subject RE: CLASSPATH trouble
Date Thu, 04 Jan 2001 20:18:10 GMT
classes imported in jsp's should be under ./Web-inf/classes/
and jars under ./Web-inf/lib/

/webapps/app/Web-inf/
              |
              \-/classes/
                  |
                  \-/com/
                      |
                      \-/...


The important part to notice about the CLASSPATH is:

<snip-from bat file>
if exist "%TOMCAT_HOME%\lib\ant.jar" set CP=%CP%;%TOMCAT_HOME%\lib\ant.jar
if exist "%TOMCAT_HOME%\lib\jasper.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\jasper.jar
if exist "%TOMCAT_HOME%\lib\jaxp.jar" set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar
if exist "%TOMCAT_HOME%\lib\parser.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\parser.jar
if exist "%TOMCAT_HOME%\lib\servlet.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\servlet.jar
if exist "%TOMCAT_HOME%\lib\webserver.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\webserver.jar
</snip>

as you can see the tomcat jars need to be able to be found in the CLASSPATH.
The CLASSPATH environ var tells the JVM where to look for classes that it
needs.

Hope this straightens everything out for you...


---
Michael Wentzel
Software Developer
<A HREF="http://www.aswethink.com">Software As We Think</A>
<A HREF="mailto://wentzel@aswethink.com">Michael Wentzel</A>

Mime
View raw message