"The LibreOffice configuration has been changed" Warning

Yesterday I installed a new version of LibreOffice 6.2.1 (64) on my PC which is also Windows 10 64.

Since then, I been getting the following message whenever I click on the Writer:

“The LibreOffice configuration has been changed. Under Tools - Options - LibreOffice - Advanced, select the Java runtime environment you want to have used by LibreOffice.”

I looked at a question from this site, and based on the answer, went here “https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html” and installed Java SE Runtime Environment 8u201 (Windows 64). Then I restarted Writer and same problem. While before when I had gone to the advanced section there was no Java option available, now the new Java showed up but despite clicking on it and saying apply, nothing was happening. I installed Java 8u202, again no changes, well, except now there were two options in advanced window.

Uninstalled both Javas, and libreoffice itself, then reinstalled libreoffice and java 1.8.0-201 (which again, shows up in options/advanced area and seems to be selected), and same issue.

This is due to file javasettings_Windows_X86_64.xml (javasettings_Windows_X86.xml in 32-bit LO) in user profiles, which was created before the introduction of support of AdoptOpenJDK in 6.1.5 and 6.2.1. You need to delete that file, or simply re-configure Java in LO - as told in the warning message. Note that we also added support of Amazon Corretto in 6.3, which will create the same situation when upgrading. See tdf#123138.

Hi!
Same box here after same kind upgrade and offered solution seems to work. Too bad when we have hundreds of ws’s and users will see this kind of warning boxes during starting … confused a bit, I’m sure. In other hand, when You check setup before on test device it’s possible to provide a solution before proceeding with upgrade, even … it’s a bit of working on it.
But, it happens.
More thanks, Alar.

You may actually need to edit the file:
C:\Users\username\AppData\Roaming\LibreOffice\4\user\config\javasettings_Windows_X86_64.xml

Inserting the correct version number and making sure the location is correct.

In particular these two lines may have to be changed:
file:///C:/Program%20Files/Java/jre1.8.0_241
1.8.0_241

to what ever the current version is.