tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6586] New: - Automatically set JAVA, JAVAHOME enviroment variables at startup
Date Wed, 20 Feb 2002 17:50:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6586>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6586

Automatically set JAVA, JAVAHOME enviroment variables at startup

           Summary: Automatically set JAVA, JAVAHOME enviroment variables at
                    startup
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: lars.sonchocky-helldorf@bbdo-interone.de


After unpacking jakarta-tomcat-4.0.2.tar.gz and invoking startup.sh I got the message:

The JAVA_HOME environment variable is not defined correctly

in tomcat 3.3 this didn't happen. After looking around for a while I found a solution: add
the following lines (taken from tomcat.sh of tomcat 3.3) to the top of setclasspath.sh:

## -------------------- Find JAVA_HOME --------------------


if [ -z "$JAVA_HOME" ] ;  then
  JAVA=`which java`
  if [ -z "$JAVA" ] ; then
    echo "Cannot find JAVA. Please set your PATH."
    exit 1
  fi
  JAVA_BINDIR=`dirname $JAVA`
  JAVA_HOME=$JAVA_BINDIR/..
fi

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message