CLOUDSTACK-7474:Failed to start MS with java7 version mismatch error

This commit is contained in:
rayeesn 2014-09-02 16:32:22 -07:00 committed by Frank.Zhang
parent 6f7c4863a2
commit df198d07e1

View File

@ -34,5 +34,8 @@ for vendorconf in "@MSCONF@"/vendor/* ; do
CLASSPATH=$vendorconf:$CLASSPATH
done
export CLASSPATH
PATH=/sbin:/usr/sbin:$PATH
if [[ ! -d "$JAVA_HOME" && -d /usr/lib/jvm/jre-1.7.0 ]]; then
export JAVA_HOME=/usr/lib/jvm/jre-1.7.0
fi
PATH=$JAVA_HOME/bin:/sbin:/usr/sbin:$PATH
export PATH