LibraOffice does not recognise Java on a Mac

I have installed JRE 1.8.0_112 then LibreOffice 5.2.3.3 on a Mac with Sierra 10.12.1 but LibreOffice does not recognise the Java as installed. I cannot therefore create or use the database function to print address labels. What can I do to resolve this please?

For Mac you need to install JDK from Oracle.

I had installed JRE. Installing JDK worked.

Hi

I have spent a few fruitless hours trying to resolve this very frustrating problem.

I eventually downloaded the JDK from this page http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html and hey presto it works.

i now have a working Base program

Many thanks for the tip