Date: Wed, 19 Mar 2003 20:00:48 -0600 (CST) From: "Doug Poland" <doug@polands.org> To: <milo@cyberlifelabs.com> Cc: <freebsd-java@FreeBSD.ORG> Subject: Re: Specifying jdk for tomcat 4.1.18 Message-ID: <1616.172.16.1.33.1048125648.squirrel@email.polands.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
>>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1616.172.16.1.33.1048125648.squirrel>