need to set it in your script.  you probably have an 
overriding definition like:

#!/usr/bin/sh

JAVA_HOME=""

...

This will override your outside declaration.
Just remove that variable or tell it export from
the outside - or better yet, change it to:

JAVA_HOME=/blah/blah/blah...

you get the idea...  I've had this problem several times 
with scripts ignoring environment settings...

good luck...

peace.  JOe...

On 11 Jan 2002 08:47:35 -0800
  David McInnis <[EMAIL PROTECTED]> wrote:
>Can anyone explain this to me.  I have set the JAVA_HOME 
>variable but it
>is not working.   It is making me crazy.
>
>
>Here is my JAVA_HOME info (This is the path to my sun 
>java2 sdk)
>
>echo $JAVA_HOME
>/usr/java/j2sdk1.4.0/bin/
>
>When I run this:
>
>./build.sh -Dinclude.webapp.libs=yes webapp
>
>I get this:
>
>Apache Cocoon 2 Build System
>----------------------------
>Warning: JAVA_HOME environment variable is not set.
>   If build fails because sun.* classes could not be 
>found
>   you will need to set the JAVA_HOME environment 
>variable
>   to the installation directory of java.
>
>
>/usr/xml-cocoon2/bin/and: java: command not found
>
>Thanks,
>
>David McInnis
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been 
>answered in the
>FAQ before posting. 
><http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: 
><[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to