From owner-freebsd-java Wed Mar 19 18:37:32 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 0967837B401 for ; Wed, 19 Mar 2003 18:37:31 -0800 (PST) Received: from a.smtp-out.sonic.net (a.smtp-out.sonic.net [208.201.224.38]) by mx1.FreeBSD.org (Postfix) with SMTP id 4C5E543F85 for ; Wed, 19 Mar 2003 18:37:30 -0800 (PST) (envelope-from milo@cyberlifelabs.com) Received: (qmail 10683 invoked from network); 20 Mar 2003 02:37:29 -0000 Received: from prop.sonic.net (208.201.224.193) by a.smtp-out.sonic.net with SMTP; 20 Mar 2003 02:37:29 -0000 Received: from cyberlifelabs.com (adsl-64-142-14-252.sonic.net [64.142.14.252]) by prop.sonic.net (8.11.6/8.8.5) with ESMTP id h2K2bSp13603; Wed, 19 Mar 2003 18:37:28 -0800 X-envelope-info: Message-ID: <3E792968.5000308@cyberlifelabs.com> Date: Wed, 19 Mar 2003 18:37:28 -0800 From: Milo Hyson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030317 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Doug Poland Cc: leafy@leafy.idv.tw, freebsd-java@FreeBSD.ORG Subject: Re: Specifying jdk for tomcat 4.1.18 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> <1616.172.16.1.33.1048125648.squirrel@email.polands.org> <20030320020719.GA70161@leafy.idv.tw> <1671.172.16.1.33.1048126904.squirrel@email.polands.org> In-Reply-To: <1671.172.16.1.33.1048126904.squirrel@email.polands.org> Content-Type: text/html; 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 Doug Poland wrote:
leafy said:
  
On Wed, Mar 19, 2003 at 08:00:48PM -0600, Doug Poland wrote:
    
/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.

      
The same goes for jboss3ctl. If I want to switch to a different
jdk, I have to recompile the whole thing(!). Is it possible to
explicitly set JAVA_HOME when invoking the wrappers? Or by setting
some configuration files for that?

    
Curious.  I don't know the answer to your question.  How do you
recompile with a different jdk?  In the jakarta-tomcat41 Makefile it
echos $JAVA_HOME as /usr/local/jdk1.3.1 but I have no idea how it is
set.  I obviously don't know enough about the port Makefile
business.

Perhaps a knoweldgeable and kind soul can enlighten us why jdk1.3.1
is the only jdk for use in jboss3 and tomcat41.
  
I guess this is why I don't install Tomcat from ports. I just download the tarball and unzip it where I want it. Then I run the startup.sh script in the bin directory to kick Tomcat into gear. That script looks at the JAVA_HOME variable to determine which JVM to use.

-- 
Milo Hyson
CyberLife Labs
To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message