Howdy,
As someone else said, don't sh it, just run it in your current shell.
Alternatively, make JAVA_HOME explicit in the script rather than taken
from environment.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Tony Sutton [mailto:[EMAIL PROTECTED]
>Sent: Thursday, February 05, 2004 3:33 AM
>To: 'Tomcat Users List'
>Subject: RE: $JAVA_HOME error
>
>Thanks for the reply. Here's what I got after following your steps.
>
>[EMAIL PROTECTED] tony]$ export JAVA_HOME=/usr/java/j2re1.4.2_03
>[EMAIL PROTECTED] tony]$ export PATH=$JAVA_HOME/bin:$PATH
>[EMAIL PROTECTED] tony]$ cd jakarta-tomcat-4.1.29/bin/
>[EMAIL PROTECTED] bin]$ chmod +x startup.sh
>[EMAIL PROTECTED] bin]$ ./startup.sh
>The JAVA_HOME environment variable is not defined correctly
>This environment variable is needed to run this program
>
>So, no luck...
>
>Do you think it's because I need the SDK and not JRE as mentioned by
Mark
>Thomas?
>
>Many thanks,
>
>- Tony Sutton
>- http://www.hypertony.co.uk
>
>-----Original Message-----
>From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
>Sent: 04 February 2004 23:20
>To: Tomcat Users List
>Subject: RE: $JAVA_HOME error
>
>do
>
>export JAVA_HOME=/usr/java/j2re1.4.2_03
>export PATH=$JAVA_HOME/bin:$PATH
>cd jakarta-tomcat-4.1.29/bin/
>chmod +x startup.sh
>./startup.sh
>
>
>Filip
>
>
>
>
>-----Original Message-----
>From: Tony Sutton [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, February 04, 2004 3:14 PM
>To: [EMAIL PROTECTED]
>Subject: $JAVA_HOME error
>
>
>Hi there,
>
>I'm new to using jakart.
>
>I'm trying to get jakart v4.1.29 to run under Mandrake 9.1
>
>I have downloaded and installed JRE from Sun, version 1.4.2_03. The
>installation went well. Here's the output from my Linux box:
>
>[EMAIL PROTECTED] tony]$ which java
>/usr/java/j2re1.4.2_03/bin/java
>[EMAIL PROTECTED] tony]$ echo $JAVA_HOME
>/usr/java/j2re1.4.2_03
>[EMAIL PROTECTED] tony]$
>
>OK so far.
>
>However, I tried to start jakart by going to the  jakarta-tomcat-
>4.1.29/bin/
>directory and typed in:
>
>sh startup.sh
>
>I get this error message:
>
>[EMAIL PROTECTED] bin]$ sh startup.sh
>The JAVA_HOME environment variable is not defined correctly This
>environment
>variable is needed to run this program [EMAIL PROTECTED] bin]$
>
>I can't figure out what I am doing wrong. I have tried googling for it,
but
>it came back very little.
>
>Does anyone know why I am getting this error message?
>
>Thanks,
>
>Tony Sutton
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to