Getting message I need java

I have 10.10.2 version of Yosemite. Downloaded Libre Office a few minutes ago and tried to use a simple database setup.
The pop up said I needed Java. How do I get this and download it to where it needs to go? Are there any other problems I will be facing because of the version of OS I have?

Simply download Java from and install it. LibreOffice will automatically find your java directory if you use the default intstall location. Go to Tools - Options - Advanced if you have special install needs. Needing Java for the database component of LibreOffice is a requirement on all OSs, not specifically Macs.