LibreOffice Java JRE Settings and Requirements

LibreOffice utilizes a Java Runtime Environment (JRE) to execute several advanced functions, including database tools, specific wizards, and custom scripting frameworks. This guide outlines which features depend on Java, the configuration settings required within LibreOffice to enable them, architecture compatibility rules, and how to configure custom Java parameters and classpaths.

Features in LibreOffice That Require Java

While standard document editing in Writer, Calc, and Impress functions without Java, specific tools and advanced components require a working JRE:

Architecture and Version Requirements

To ensure proper communication between LibreOffice and the JRE, specific installation requirements must be met:

Configuring Java Settings in LibreOffice

To configure the runtime environment in LibreOffice:

  1. Open LibreOffice and navigate to the Advanced settings:
    • Windows / Linux: Go to Tools > Options > LibreOffice > Advanced.
    • macOS: Go to LibreOffice > Preferences > LibreOffice > Advanced.
  2. Check the box labeled Use a Java runtime environment.
  3. Allow the software to populate the list of installed Java environments.
  4. Select the radio button next to the desired Java installation.
  5. If your installation does not appear automatically, click Add… and manually browse to the directory where your JRE or JDK is installed (for example, /usr/lib/jvm/ on Linux or C:\Program Files\Java\ on Windows).
  6. Click Apply, then click OK.
  7. Restart LibreOffice to apply the changes.

Advanced Java Parameters and ClassPath

For specialized use cases, such as connecting to external databases or allocating more memory to Java tasks, you can adjust additional settings within the same Advanced menu:

Disabling Java

If you do not require database wizards, Java-based macros, or HSQLDB, you can uncheck Use a Java runtime environment in the Advanced options menu. Disabling Java reduces memory usage and eliminates startup prompts requesting a Java installation.