[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-java
Subject:    Re: Specifying jdk for tomcat 4.1.18
From:       "Doug Poland" <doug () polands ! org>
Date:       2003-03-20 2:00:48
[Download RAW message or body]

>>> 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic