You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by bob McLaughlin <bo...@interknack.com> on 2002/06/27 08:12:14 UTC

RE: Environment Variables !!

Add the reference to the JAVA_HOME to your ./startup.sh.
Mine looks like this:

#! /bin/sh
#
# $Id: startup.sh,v 1.4 2001/09/17 04:59:32 costin Exp $

# Shell script to startup the server

JAVA_HOME=/usr/java/jdk1.3.1_03; export JAVA_HOME

PATH=$JAVA_HOME/bin:$PATH; export PATH

TOMCAT_OPTS="-Xms512m -Xmx512m"; export TOMCAT_OPTS

BASEDIR=`dirname $0`

$BASEDIR/tomcat.sh start $@




-----Original Message-----
From: Mohammed Omar [mailto:mog@harf.com]
Sent: Thursday, June 27, 2002 9:02 AM
To: tomcat-user@jakarta.apache.org
Subject: Environment Variables !!


Dear all

I have Redhat 7.2 installed with the latest JDK , and i installed tomcat ,
but when i run ./startup.sh it gives me :
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program .

I know it is a question about how to set environment variables in RedHat .

I used this command :
set JAVA_HOME=jdk path
export JAVA_HOME

but i still receieve the same message ......  what i can do?

Thanks




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>