Michael, Jianming and Pete -

Thanks a lot!  I finally got it working.

-----Original Message-----
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: CLASSPATH trouble


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:[EMAIL PROTECTED]">Michael Wentzel</A>

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

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

Reply via email to