I hope to run the tomcat 5.0 with JRockit 5.0 R26.3.on a linux machine and installed JRockit in the root directory (/root/jrockit-R26-3.0-jdk1.5.0_06) The following is the environment variables which I set:**
export JAVA_HOME=/root/jrockit-R26-3.0-jdk1.5.0_06 export JAVA_HOME PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH export PATH export CLASSPATH=/root/jrockit-R26-3.0-jdk1.5.0_06/lib/tools.jar:/root/jrockit-R26-3.0-jdk1.5.0_06/jre/lib/rt.jar:./ export CLASSPATH=$CLASSPATH:/var/tomcat/common/lib/servlet-api.jar export CLASSPATH=$CLASSPATH:/var/tomcat/common/lib/mysql-connector-java-3.1.12-bin.jar export CLASSPATH=$CLASSPATH:/root export CATALINA_HOME=/var/tomcat export CATALINA_HOME However, when I start the tomcat (./startup.sh), I received the following message: The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE I double checked the environment variables which I set and there is no typo. The tomcat runs very well if I use Sun J2EESDK . Is there something wrong with the configuration? Thank you very much!