Tomcat would start

Derek Broughton news at pointerstop.ca
Wed Jul 19 13:15:33 UTC 2006


Paul Puschmann wrote:

> OOzy Pal <oozypal at gmail.com> schrieb am Mon, Jul 17, 2006 at 07:02:02PM
> +0300:
>> Hello
>> 
>> $ sudo /usr/share/tomcat5/bin/startup.sh
>> 
>> The JAVA_HOME environment variable is not defined correctly
>> This environment variable is needed to run this program
>> NB: JAVA_HOME should point to a JDK not a JRE
>> 
>> JAVA_HOME=/usr/lib/jvm/java-gcj
>> 
>> Can anyone help?
> 
> Get Sun Java SDK and remove java-gcj.
> 
It's not quite _that_ simple - Tomcat is intended to find any of the free
Java options.  If you use Sun Java, you need to explicitly provide
JAVA_HOME (in /etc/defaults/tomcat5).
-- 
derek





More information about the ubuntu-users mailing list