From owner-freebsd-java Mon Mar 18 9:59:11 2002 Delivered-To: freebsd-java@freebsd.org Received: from mail7.kc.rr.com (mkc-162-160.kc.rr.com [24.94.162.160]) by hub.freebsd.org (Postfix) with ESMTP id 7D06237B402 for ; Mon, 18 Mar 2002 09:59:09 -0800 (PST) Received: from gruffy.kc.rr.com ([65.26.58.166]) by mail7.kc.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Mon, 18 Mar 2002 11:56:57 -0600 Received: (from riksca@localhost) by gruffy.kc.rr.com (8.11.6/8.11.6) id g2IHx9v41883 for java@FreeBSD.org; Mon, 18 Mar 2002 11:59:09 -0600 (CST) (envelope-from riksca) Date: Mon, 18 Mar 2002 11:59:09 -0600 From: Rik Scarborough To: FreeBSD Java Subject: JAVA_HOME varible Message-ID: <20020318175909.GE8126@gruffy.kc.rr.com> Mail-Followup-To: FreeBSD Java Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i 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 Hi, When I try to run some Java applications, such as Ant and Tomcat, I get complaints that basically say the JAVA_HOME variable is not set correctly. I've fixed that in Tomcat by changing the scripts to set JAVA_HOME themselves. I'm prepared to do that with Ant as well, but there has to be a better way. I have set the export in my .bashrc file, but the scripts that run Ant and Tomcat are sh scripts and JAVA_HOME does not seem to be passed to them. Does anyone have a clean way of getting JAVA_HOME set so a sh script will pick it up? ~Rik -- Ranger Rik -- RikSca@mac.com Brought to you by FreeBSD 4.4 Joshua 24:15 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message