From owner-freebsd-java Wed Mar 19 18: 0:53 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D203637B401 for ; Wed, 19 Mar 2003 18:00:51 -0800 (PST) Received: from galilee.polands.org (new-24-208-57-240.new.rr.com [24.208.57.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35FAC43FBD for ; Wed, 19 Mar 2003 18:00:50 -0800 (PST) (envelope-from doug@polands.org) Received: from mydomain.com (samaria.polands.org [172.16.1.17]) by galilee.polands.org (8.12.6/8.12.6) with SMTP id h2K20lDh038502; Wed, 19 Mar 2003 20:00:47 -0600 (CST) (envelope-from doug@polands.org) Received: from 172.16.1.33 (SquirrelMail authenticated user djp) by email.polands.org with HTTP; Wed, 19 Mar 2003 20:00:48 -0600 (CST) Message-ID: <1616.172.16.1.33.1048125648.squirrel@email.polands.org> Date: Wed, 19 Mar 2003 20:00:48 -0600 (CST) Subject: Re: Specifying jdk for tomcat 4.1.18 From: "Doug Poland" To: In-Reply-To: <3E78E6C2.2090209@cyberlifelabs.com> References: <18118.63.104.35.130.1048108215.squirrel@email.polands.org> <3E78DDFF.7000500@cyberlifelabs.com> <32007.63.104.35.130.1048109532.squirrel@email.polands.org> <3E78E6C2.2090209@cyberlifelabs.com> X-Priority: 3 Importance: Normal Cc: X-Mailer: SquirrelMail (version 1.2.8) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 >>> Doug asked: >>>> >>>> How do I specify a different jdk for tomcat? I can't find it >>>> anywhere in the conf/* files. Seems that tomcat41ctl has >>>> /usr/local/jdk1.3.1 compiled into it. Thought I might try >>>> tomcat with jdk1.4.1. >>> >>> >>> It determines the JDK from the JAVA_HOME environment variable. >>> >> >> What happens when I (as root) don't have JAVA_HOME set when >> /usr/local/etc/rc.d/020.jakarta-tomcat41.sh start is invoked? >> >> What happens on system startup? >> > > Tomcat will not start unless JAVA_HOME is set -- it barfs with an > error. The startup script (in /usr/local/etc/rc.d) is probably > setting it for you. Look in there. > Hmmm, when I start tomcat from /usr/local/etc/rc.d/020.jakarta-tomcat41.sh as root without JAVA_HOME set, tomcat starts just fine. The script does not set JAVA_HOME. When I run strings on /usr/local/bin/tomcat41ctl I see references to /usr/local/jdk1.3.1. Unless I'm missing something, I think that this tomcat41ctl port has the path to /usr/local/jdk1.3.1 compiled into the binary and there is no way to path to a different jdk. -- Regards, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message