leave JAVA_HOME alone on macOS
MODIFY
asciidoctorj-distribution/src/main/resources/customUnixStartScript.txt
asciidoctorj-distribution/src/main/resources/customUnixStartScript.txt
@@ -80,10 +80,6 @@ if [ -n "\$JAVA_HOME" ] ; then
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
-# For Darwin, find JAVA_HOME for 1.8
-elif \$darwin; then
- JAVA_HOME=`/usr/libexec/java_home -v 1.8`
- JAVACMD="\$JAVA_HOME/bin/java"
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

leave JAVA_HOME alone on macOS