Your message is typical of not having Java installed/enabled. I believe in Mac it is under Preferences then LibreOffice->Advanced. Use a Java runtime environment should be checked. Then if Java is installed, make sure one is chosen from the list (screenshot from Linux):