I can't get LibreOffice to recognise/find Java.

I have LibreOffice 6.0.7.3 (x64) installed on a Windows 10 computer. I also let Java upgrade to version 8 (build 1.8.0_191-b12). I have not been successful in getting LibreOffice to recognize any JRE. I need to access a database and I am dead in the water. Any ideas?

Hello, What type of database are you attempting to access?

Try the less intrusive options offered by others first. However, if you are following the proper Java extension installation instructions for your particular database, you know database stuff in general, but nothing works inexplicably, and if your symptom is that the radio button for the Java runtime won’t stay selected in options/preferences, then as a last resort you might try resetting your LO user profile by restarting LO into safe mode. @Hrbrgr suggested this for my case, and it was indeed the only solution that worked for me. Only try this if you have exhausted other options though, as you might not have installed the JDBC extension properly (if that’s what you are attempting), entered the wrong server credentials, have a problem with your local or remote database server, haven’t specified a Java class path, or a host of other possible problems.

Make sure tyat you have a 64 bits version of Java.

I finally gave up and uninstalled LibreOffice and Java. Then downloaded fresh copies of both. Installed Java, rebooted, installed LibreOffice, rebooted. Everything seems to be working now.

Had the same problem with no JRE found. Turns out that Java was installing the 64 bit version into the (X86) 32 bit program files folder and Office could not find it. Had to download the ‘offline’ version of the Java 64bit to be able to install it in the X64 Program Files folder and then everything works fine.