Do not mistake 'x64' and 'x86' architectures: when using Windows, you need to make sure that the architecture of installed LibreOffice matches the architecture of installed JRE.
If you have 32-bit operating system, you will be offered a 32-bit installer (Windows (32-bit)).
You may check the architecture of installed LibreOffice in menu Help ▸ About LibreOffice, where the version string looks like "Version: 6.4.5.2 (X86_64)" for 64-bit version, and "Version: 6.4.5.2 (x86)" for 32-bit version.
LibreOffice can only use JRE with matching architecture: i.e., 64-bit LibreOffice can only use 64-bit JRE, and 32-bit LibreOffice can only use 32-bit JRE.
When you have installed a 64-bit LibreOffice, and 32-bit JRE, LibreOffice would not be able to find and use the JRE, no matter how hard you would try it. Take care that you download from the Java home page (www.java.com) the right architecture. In this case, LibreOffice (of reasonably fresh version) would try to be helpful in its "JRE Required" error message, telling you that it needs specific architecture (e.g., 64-bit) of JRE.
Oracle JRE
Download links
To find other available downloads, including 64-bit JRE, you need to ignore the Big green "Download Java" button, and find a small See all Java 8 Downloads for Desktop users link below.
Do not use the big button; use the link "See all Java 8 Downloads for Desktop users".
Then, in the manual download page, you have to choose the right version. (If you are in doubt, you can install both.)
Choose the adequate direct downlad link, depending on your LibreOffice installation.
Package names
Java installer packages typically have this naming scheme:
jre-8u201-windows-i586-iftw.exe or JavaSetup8u261.exe - 32-bit web-installer;
Thus, be aware that 'standard' build, with a naming scheme like JavaSetup8u341.exe will NOT work with LibreOffice. This is why you have to use the manual download link.
How to control which JRE version is installed
JREs which are installed into C:\Program Files (x86) (as opposed to C:\Program Files) are 32-bit (unless you manually modified install path during installation), so you may use this information to tell if your JRE is 32-bit or 64-bit.
Launching Java Control Panel ("Configure Java" available in Windows Start menu), and clicking "View" button on "Java" tab, opens Java Runtime Environment Settings window with Architecture column allowing to see if installed instances are 32-bit (x86) or 64-bit (x86_64).
It is possible to install both 32-bit and 64-bit Java on the system; and they don't conflict with each other - so if in doubt, just install both.
Eclipse Temurin JRE
LibreOffice requires a Java Runtime Environment to benefit from all its features.
To remain "open source", Eclipse Temurin JRE (ex OpenJDK) can replace Oracle's JRE.
LibreOffice releases available from Apple App Store don't include Java support at all, because apps distributed in the App Store are not allowed to depend on optional functionality like Java.
Install Xcode if prompted. * Note: If Xcode fails to install, download it here: Internet Archive search for Xcode, then extract it (replace .xip file name with the appropriate one): xip -x Xcode_version_info.xip The following message will appear:
xip: signing certificate was "Software Update" (validation not attempted)
Wait 20-30 minutes (the extraction takes a very long time!) before regaining control with the message: xip: expanded items from "/Users/.../Downloads/Xcode_version_info.xip" Move Xcode to the Applications folder and Double-click on Xcode to install it Then restart the Brew installation /bin/bash -c "$(curl -fsSL) https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Search for Temurin Java versions and choose one: brew search temurin
Install the desired version brew install temurin@11