On 5/24/05, Gary Zhu <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> When trying to start tomcat 5.5.4(tried 5.5.7 and 5.5.9) on OS
> "redhat-release-3ES-7.4", I always get the following error:
> '/catalina.sh: /usr/local/tomcat/bin/setclasspath.sh: line 74: syntax
> error near unexpected token `do
> '/catalina.sh: /usr/local/tomcat/bin/setclasspath.sh: line 74: `    for
> i in "$OSXHACK"/*.jar; do
> 
> Of course, all the three versions have been working fine with other
> redhat linux versions such as "redhat-release-9-3".

Strange maybe RHEL3-ES-7.4 (whatever all that means) somehow does more
syntax checking than usual and enteres that IF even though it doesn't
need to and barfs it as a result so try editing setclasspath.sh and
comment out the below lines:

# OSX hack to CLASSPATH
JIKESPATH=
if [ `uname -s` = "Darwin" ]; then
  
OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes"
  if [ -d "$OSXHACK" ]; then
    for i in "$OSXHACK"/*.jar; do
      JIKESPATH="$JIKESPATH":"$i"
    done
  fi
fi

Hopefully that will make it happy. :)

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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

Reply via email to