Linux Ubuntu Iso 64 Bits

I get this error message every time I try to create/use LibreOffice base " LibreOffice requires a Java runtime environment (JRE) to perform this task. Please install a JRE and restart LibreOffice." Why do I get this message and how can I fix it?