Why can't LO find the JRE

I’ve installed the JRE correctly. Using jre-8u251-windows-i586-iftw.exe which installs into “C:\Program Files (x86)\Java\jre1.8.0_251”. The output from the java -version is

java version “1.8.0_251”
Java™ SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot™ Client VM (build 25.251-b08, mixed mode, sharing)

In the LO menu tools\options\adanced\ I have the “Use Java runtime environment” checkbox ticked.

There are no JREs listed in the ‘already installed’ list.

Using the ‘Add’ button and pointing to the “C:\Program Files (x86)\Java\jre1.8.0_251” folder comes back with

  • The folder you selected does not contain a Java runtime environment -Please select another folder -

Ok, so what do I have to do next to get LO talking to Java?

I’ve installed the JRE correctly. …

This is only true, if you use a 32-bit LibreOffice, since the Java version you installed is 32-bit (i586 and install location ...(x86) indicates that) and bitness of LibreOffice and Java must match. I bet you got LibreOffice 64-bit and hence it is not working. See also FAQ - Java / Using Windows

Thanks. The Java download site is very confusing in this regard. I did manage to find jre-8u251-windows-x64.exe which installed the 64-bit version and now LO is happy.

FAQ