I first used the 'which lava' command to find the path for jre. then after editing the ray.sh file i got
JAVA_HOME=/usr/local/bin/java;
for JAVA in "$JAVA_HOME/bin/java" "/usr/bin/java" "/usr/local/bin/java"
do
if [ -x $JAVA ]
blah blah
yeh when i run ray.sh I get
JAVA_HOME=/usr/local/bin/java: Command not found.
JAVA_HOME: Undefined variable.
now im not sure how to move forward. I am on freeBSD and installed jre 1.6.0 and jdk16 I am wondering what might be causing this problem.