XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX error message is as follows Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Xxxxxxxxxxxxxx
Neither the Java_home nor the JRE_HOME environment variable is defined
At least one of these environment variable are needed to run this program
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Xxxxxxxxxxxxxxxxxxx
Cause: The JDK or JRE path could not be found.
WORKAROUND: Declare the environment variable at the beginning of the Setclasspath.bat, open the setclasspath.sh below the Tomcat bin directory, add the Red section, and modify the path to your own machine JDK and JRE path.
#!/bin/sh
# Licensed to the Apache software Foundation (ASF) under one or more
# Contributor license agreements. See the NOTICE file distributed with
# This work for additional information regarding copyright ownership.
# The ASF licenses this file to you under the Apache License, Version 2.0
# (the "License"); Except in compliance with
# The License. Obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# unless required by applicable or agreed to writing, software
# Distributed under the License is distributed on a "as is" BASIS,
# without warranties or CONDITIONS of any KIND, either express or implied.
# See the License for the specific language governing permissions and
# Limitations under the License.
# -----------------------------------------------------------------------------
# Set CLASSPATH and Java options
#
# $Id: setclasspath.sh 795037 2009-07-17 10:52:16z Markt $
# -----------------------------------------------------------------------------
Add the following configuration information
Export java_home=/opt/zimbra/jdk1.6.0_31
Export JRE_HOME=/OPT/ZIMBRA/JDK1.6.0_31/JRE
This is based on the actual installation path configuration of your system JDK.
Tomcat cannot start error under Linux