Try adding an "export " in front of your "JAVA_HOME=" line.
Otherwise, undex unix, you can add a "setenv.sh" file in the bin folder
of james and add the JAVA_HOME declaration in that file:
-----
#!/bin/sh
export JAVA_HOME="/usr/lib/jvm/java"
------
Marcello Marangio wrote:
Hi all
I followed some advices I found on the mailing list to create a launch
script, to avoid the run.sh& command line.
The script is:
#!/bin/sh
# Startup script for anacron
#
# chkconfig: 3 80 20
# description: Run cron jobs that were left out due to downtime
# Source function library.
. /etc/rc.d/init.d/functions
JAVA_HOME=/usr/java/j2sdk1.4.2_02
[ -f /home/james/james-2.2.0/bin/phoenix.sh ] || exit 0
/home/james/james-2.2.0/bin/phoenix.sh $1
But when I run it, I obtain:
[EMAIL PROTECTED] bin]# service phoenix start
ERROR: JAVA_HOME not found in your environment.
Please, set the JAVA_HOME variable in your environment to match the
location of the Java Virtual Machine you want to use.
I set JAVA_HOME into .bash_profile of the root user.
I am sure is a pretty newbie question... but still, any help?
Thanks
marcello
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]