Problem.
error: ./catalina.sh: 357: not found
Solution: Set the path for JAVA_HOME and JRE_HOME.
First, check java version. Command line: java -version
You will get this: java version "1.6.0_20"
In case java version not equal to the value as in this example, please replace
that according to your java version.
sudo vi catalina.sh
Press key Insert
Just add these two lines.
JAVA_HOME="/usr/lib/jvm/java-sun-6-0.20/bin"
JRE_HOME="/usr/lib/jvm/java-sun-6-0.20/jre"
Then press key Esc
:wq!
Note: :wq! is to quit and save.