From owner-freebsd-java Mon Mar 18 10:35:34 2002 Delivered-To: freebsd-java@freebsd.org Received: from smtp01.wxs.nl (smtp01.wxs.nl [195.121.6.61]) by hub.freebsd.org (Postfix) with ESMTP id E649D37B405 for ; Mon, 18 Mar 2002 10:35:29 -0800 (PST) Received: from Alex ([213.10.151.186]) by smtp01.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id GT6MB302.CVY; Mon, 18 Mar 2002 19:35:27 +0100 Date: Mon, 18 Mar 2002 19:35:13 +0100 From: Alex X-Mailer: The Bat! (v1.53d) Reply-To: Alex X-Priority: 3 (Normal) Message-ID: <1936611316.20020318193513@dds.nl> To: Rik Scarborough Cc: FreeBSD Java Subject: Re: JAVA_HOME varible In-Reply-To: <20020318175909.GE8126@gruffy.kc.rr.com> References: <20020318175909.GE8126@gruffy.kc.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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