Fixed the default JAVA_HOME value to be Java8 if not set

This commit is contained in:
Will Stevens 2017-02-10 13:42:58 -05:00
parent 17787a194a
commit 6ee4a195f2

View File

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