Lack of JRE, would cause the below error in LibreOffice:
LibreOffice requires a Java runtime environment (JRE) to perform this task. Please install a JRE (and libreoffice-java-common) and restart LibreOffice.
I use KDE Neon, but it works also for other (ubuntu based) distro’s
sudo apt install default-jre
sudo apt install libreoffice-java-common
If you have successfully installed the Java Runtime Environment, then go to Tools -> Options -> Advanced
again and you can see Java is listed, select the JRE and press OK.