On Mon, 7 Jan 2002, vijay wrote:

> Yeah it's true that TOMCAT startup script completly ignores the CLASSPATH.
> I've checked the catalina .sh script
> where it is using it's own CLASSPATH. When i tried to add my bash_profile
> CLASSPATH, server startup is giving errors.
> This is the code in catalina.sh
>
> CP="$CATALINA_HOME/bin/bootstrap.jar";
>
> if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
>   CP=$CP:"$JAVA_HOME/lib/tools.jar"
> fi
> if [ -f "$JSSE_HOME/lib/jsse.jar" ] ; then
>
> CP=$CP:"$JSSE_HOME/lib/jcert.jar":"$JSSE_HOME/lib/jnet.jar":"$JSSE_HOME/lib/jsse.jar"
>
> fi
>
>
> i tried to add my CLASSPATH like this:
>
> if [ -f "$CLASSPATH" ] ; then
>   CP=$CP:"$CLASSPATH"
> fi
>
> But it seems it's not even finding $CLASSPATH.
>
> Any idea how to manipulate this.
[ ... ]

What errors is it giving?

Oh wait, "-f" is to check that a file exists, which is not the check
you want to do on $CLASSPATH (it's not a file, it's just a string --
in this context).  That's probably the problem.  You can use "-n" to
check that its length is non-zero, or just use "$CLASSPATH" to check
that it's non-null (non-empty).

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to