Skip to content

Commit

Permalink
Fix neo4j script to support Java 1.8 on OS X
Browse files Browse the repository at this point in the history
Fixes #6895

Why not only do `1.7+`? That will pick the highest available version,
which might be Java9 which would be unfortunate if Java8 or 7 is
available. Java9 is also not supported.
  • Loading branch information
spacecowboy committed May 17, 2016
1 parent aa6b9d6 commit 38e33f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


function show_java_requirements() {
echo "* Please use Oracle(R) Java(TM) 7 or OpenJDK(TM) to run Neo4j Server."
echo "* Please use Oracle(R) Java(TM) 8 (preferred) or 7 or OpenJDK(TM) 8 (preferred) or 7 to run Neo4j Server."
}

function show_installation_instructions() {
Expand Down Expand Up @@ -84,7 +84,7 @@ findjava() {
echo "Using Java version: $JAVA_VERSION"
fi
if [ -z "$JAVA_HOME" ] ; then
JAVA_HOME=`/usr/libexec/java_home -v 1.7`
JAVA_HOME=$(/usr/libexec/java_home --failfast --version 1.8 || /usr/libexec/java_home --failfast --version 1.7)
fi
;;
esac
Expand Down

0 comments on commit 38e33f8

Please sign in to comment.