How to Fix LibreOffice JRE Errors

LibreOffice relies on the Java Runtime Environment (JRE) to execute specific functions, including database operations in Base, macro execution, wizards, and accessibility features. When LibreOffice cannot locate or communicate with a functional Java installation, users encounter error messages indicating a missing, defective, or incompatible JRE. This guide provides a direct, step-by-step approach to diagnosing and resolving these Java configuration issues across Windows, macOS, and Linux platforms.

Verify 32-Bit vs. 64-Bit Architecture

The most common cause of JRE errors is an architecture mismatch between LibreOffice and Java. A 64-bit version of LibreOffice requires a 64-bit JRE, and a 32-bit version requires a 32-bit JRE.

  1. Open LibreOffice and navigate to Help > About LibreOffice to check whether your installation is 32-bit or 64-bit.
  2. Check your installed Java version through your operating system settings or command line (java -version).
  3. If the architectures do not match, download and install the matching JRE or JDK from a trusted vendor such as Adoptium (Eclipse Temurin), Amazon Corretto, or Oracle.

Enable and Select Java in LibreOffice Settings

Sometimes Java is installed properly but is either disabled or unselected within the LibreOffice configuration.

  1. Open LibreOffice and go to Tools > Options (Windows/Linux) or LibreOffice > Preferences (macOS).
  2. Expand the LibreOffice tree in the left pane and select Advanced.
  3. Ensure the box next to Use a Java runtime environment is checked.
  4. Wait a few seconds for the list of installed environments to populate.
  5. Select the radio button next to your installed JRE version.
  6. Click OK and restart LibreOffice.

Manually Add the Java Installation Path

If LibreOffice fails to detect your installed JRE automatically, you can point the application directly to the installation folder.

  1. Navigate back to Tools > Options > LibreOffice > Advanced.
  2. Click the Add… button located to the right of the Java runtime list.
  3. Browse to your Java installation directory:
    • Windows: Usually located in C:\Program Files\Java\[JRE/JDK_Folder] or C:\Program Files\Eclipse Adoptium\[JDK_Folder].
    • Linux: Typically found under /usr/lib/jvm/ or /usr/java/.
  4. Select the root folder of the JRE/JDK installation and click Select Folder (or OK).
  5. Ensure the newly added path is selected with a radio button, apply the changes, and restart the application.

macOS Specific Requirements (Install a JDK)

On macOS, LibreOffice often fails to recognize standalone JRE packages due to system security structures and package layouts.

Reset the LibreOffice User Profile

If LibreOffice continues to produce Java errors despite a proper installation, a corrupted user profile configuration may be the cause.

  1. Open LibreOffice and navigate to Help > Restart in Safe Mode.
  2. In the Safe Mode dialog, select Reset to factory settings.
  3. Choose Reset settings and user changes, then click Apply Changes and Restart.
  4. Return to Tools > Options > LibreOffice > Advanced and re-enable your selected JRE.