JAVA_HOME enviroment variable

JOYDEEP <[email protected]> Wed, 02 May 2007 13:34:57 +0530
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <[email protected]>
Dear list,

I have installed java 1.4 in suse 9.2.  Now " echo $JAVA_HOME"   shows  
/usr/lib/jvm/jre
but when I enter the bin directory of slide then  " echo $JAVA_HOME"   
returns nothing.
SO I manually set the value from command line and now " echo
$JAVA_HOME"  returns /usr/lib/jvm/jre

but after firing up the   startup.sh  I reports
========================
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
====================================

how can I fix this problem ? thanks in advanced.