Date: Mon, 18 Mar 2002 19:35:13 +0100 From: Alex <freebsd@akruijff.dds.nl> To: Rik Scarborough <RikSca@kc.rr.com> Cc: FreeBSD Java <java@FreeBSD.org> Subject: Re: JAVA_HOME varible Message-ID: <1936611316.20020318193513@dds.nl> In-Reply-To: <20020318175909.GE8126@gruffy.kc.rr.com> References: <20020318175909.GE8126@gruffy.kc.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Rik,
Monday, March 18, 2002, 6:59:09 PM, you wrote:
RS> Hi,
RS> When I try to run some Java applications, such as Ant and Tomcat, I get
RS> complaints that basically say the JAVA_HOME variable is not set
RS> correctly. I've fixed that in Tomcat by changing the scripts to set
RS> JAVA_HOME themselves. I'm prepared to do that with Ant as well, but
RS> there has to be a better way.
RS> I have set the export in my .bashrc file, but the scripts that run Ant
RS> and Tomcat are sh scripts and JAVA_HOME does not seem to be passed to
RS> them. Does anyone have a clean way of getting JAVA_HOME set so a sh
RS> script will pick it up?
RS> ~Rik
I didn't change the main tomcat script. The startup script that is
located in /usr/local/etc/rc.d/tomcat set some variables. Mine start
with this:
JAVA_HOME=/usr/local/jdk1.1.8
export JAVA_HOME
JAVACMD="nice -5 $JAVA_HOME/bin/java"
export JAVACMD
TOMCAT_HOME=/usr/local/tomcat
export TOMCAT_HOME
--
Best regards,
Alex mailto:freebsd@akruijff.dds.nl
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1936611316.20020318193513>
