When running setsdkenv_unix initially, the script refused to accept a valid JDK 1.8 path (/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home - as reported by /usr/libexec/java_home)
The script checks for Commands/javac which does not exist. (javac is in $JAVA_HOME/bin/).
grep "Commands" configure.pl setsdkenv_unix.sh.in settings/settings.mk
configure.pl:# prepare Java suggestion (cut bin or Commands directory to be in the root of the Java SDK)
To enable correct settings and then run "make", I had to comment out or change "Commands" to "bin".
This also applies to JDK 1.7.0_51
To add more: LO 5.1. Mac does not find (or at least show up in Preferences > Advanced) an installed JRE. Instad it complains at startup. "JRE is defective" - "LibreOffice requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under LibreOffice - Preferences - LibreOffice - Advanced."
On the same machine, LO 220.127.116.11 works on this as expected and shows the installed JRE.
@Allister: Is that the same problem? Are you shure about the version?
*** This bug has been marked as a duplicate of bug 96163 ***