Skip to content

Commit

Permalink
Fixed the default JAVA_HOME value to be Java8 if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
swill committed Feb 10, 2017
1 parent 17787a1 commit 6ee4a19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/tomcatconf/classpath.conf.in
Expand Up @@ -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

0 comments on commit 6ee4a19

Please sign in to comment.