Get LibreOffice to Recognize Your Java Runtime

If LibreOffice says it “requires a Java Runtime Environment (JRE),” install a supported Java runtime that matches your LibreOffice architecture, then enable or select it under Tools > Options > LibreOffice > Advanced (Windows and Linux) or LibreOffice > Preferences > LibreOffice > Advanced (macOS). If Java is already installed, the usual fix is to enable Java support, wait for the runtime list to populate, and restart LibreOffice.

The warning does not mean every LibreOffice feature needs Java. It appears when you open a feature, database, extension, or wizard that depends on Java. LibreOffice’s help identifies the Advanced page as the place to activate Java support and choose an installed runtime. The exact Java version that works depends on your LibreOffice release, operating system, and Java distribution, so use compatibility guidance for your installed versions.

First check whether LibreOffice actually needs Java

If you only use Writer, Calc, or Impress for ordinary documents, spreadsheets, and presentations, you may not need a JRE at all. Close the dialog and continue without Java if the feature you were trying to use is optional and you do not rely on it. Features such as some Base database configurations, Java-based extensions, and certain wizards can require Java; if that is the function you need, install and configure a runtime.

For example, someone opening a Base file that uses an embedded HSQLDB database may need Java, while someone editing a text document usually does not. Installing Java solely to remove a warning is unnecessary if you do not use the Java-dependent function.

1. Confirm LibreOffice’s architecture

Java and LibreOffice must use compatible architectures. LibreOffice’s Advanced options help specifically warns that a 64-bit LibreOffice needs a 64-bit JRE and a 32-bit LibreOffice needs a 32-bit JRE. A Java installer can complete successfully while LibreOffice still reports that no runtime is available if the architectures do not match.

Check the LibreOffice About dialog for the architecture marker, or consult the installation details for your operating system. On Windows, a label such as “x86_64” or “64-bit” means you should install 64-bit Java. On Linux, the package manager’s architecture and the installed LibreOffice package can help identify the correct match. On Apple silicon, select a Java build intended for your macOS and processor; do not assume that an Intel-only Java package will be detected by an Apple silicon LibreOffice build.

LibreOffice Advanced settings with Java runtime use disabled and no runtime selected
The Advanced page shows whether Java support is enabled and whether LibreOffice lists any installed runtimes.

2. Install a compatible Java runtime

Use a trusted vendor or your operating system’s supported software repository. A JRE supplies the components needed to run Java applications; a JDK (Java Development Kit) includes a runtime plus development tools. LibreOffice needs Java runtime support, so a JDK can work when it contains a compatible runtime, but a JDK is not required just to use LibreOffice.

On Windows or macOS, download the JRE or JDK installer for the correct architecture from a reputable Java provider and complete its installer. On Linux, use your distribution’s software center or package manager and choose a supported Java runtime package. Package names and available Java releases differ by distribution, so do not copy a package command from another Linux version without checking your repository. The Eclipse Temurin project provides platform-specific builds and installation instructions; Oracle Java is another vendor option. Follow the vendor’s current instructions for your operating system.

Close LibreOffice before installing or updating Java. When installation finishes, reopen LibreOffice so it can scan for runtimes. Avoid old Java releases that no longer receive security fixes, and do not download installers from third-party download sites.

LibreOffice Advanced Java options with runtime support enabled and an empty installed runtime list
Enabling the checkbox alone may not solve the warning if the installed runtime list remains empty.

3. Enable Java and select the detected runtime

  1. Open LibreOffice’s options. On Windows or Linux, choose Tools > Options. On macOS, open LibreOffice > Preferences.
  2. In the navigation list, expand LibreOffice if needed, then choose Advanced.
  3. Under Java options, check Use a Java runtime environment. If a runtime appears in the list, select it. On some systems the list takes a short time to populate.
  4. Click OK to save the setting. If you changed Java installation or selection, quit LibreOffice completely and launch it again. If multiple runtimes appear, choose the supported one for your installed LibreOffice version rather than selecting several.

LibreOffice’s current help describes the checkbox, the list of installed JREs, and the need to restart in some cases. If Java support was already enabled, do not keep toggling it: check whether a runtime is listed and whether its architecture matches LibreOffice.

LibreOffice Advanced Java settings with a detected Java runtime selected
When LibreOffice detects Java, select the listed runtime and save the Advanced settings.

What if the runtime list is still empty?

First confirm that Java installation completed and that the JRE architecture matches LibreOffice. Then close every LibreOffice window, reopen the application, and check the Advanced page again. On some systems detection is delayed until a restart.

If the runtime is installed but still does not appear, use the Add control in the Java options to browse to the JRE’s root folder, if that control is available in your LibreOffice build. Select the runtime directory itself, not a random subfolder such as its bin directory. The folder layout differs between vendors and operating systems, so use the installation location shown by the Java installer or package manager. LibreOffice’s help documents adding a path to a JRE root folder.

If the location cannot be selected or LibreOffice still rejects it, avoid editing internal configuration files as a first fix. Verify that the Java build supports your operating system and processor, update LibreOffice from its official source if appropriate, and check the Java support notes for that exact release. A portable, sandboxed, or Flatpak/Snap installation may not see a system Java runtime in the same way as a conventional package; consult the packaging provider’s documentation for runtime visibility before changing system paths.

LibreOffice Advanced Java settings focused on a selected runtime and its location field
The selected row and location field help confirm which Java installation LibreOffice is configured to use.

Verify the fix

Quit and reopen LibreOffice, return to LibreOffice > Advanced, and confirm that Java support is checked and the intended runtime is listed or selected. Then retry the specific database, wizard, or extension that displayed the warning. If it opens without the JRE prompt, the configuration is working for that feature.

If the warning remains, record your LibreOffice version, operating system and architecture, Java vendor and version, and whether LibreOffice shows a runtime path. Those details identify the compatibility question to check in the official release documentation. Do not assume that reinstalling LibreOffice or changing JAVA_HOME is necessary before verifying those basics.

Official references

Leave a Comment

Get LibreOffice to Recognize Your Java Runtime

Get LibreOffice to Recognize Your Java Runtime

Install a compatible Java runtime, enable it in LibreOffice, and troubleshoot an empty JRE list without changing unrelated settings.

Run LibreOffice Headless in Docker for PDF Conversion

Run LibreOffice Headless in Docker for PDF Conversion

Build a small LibreOffice container, convert office documents without a GUI, and verify PDF output while limiting host-file access.

Make LibreOffice Impress Files Smaller Without Blurring Images

Make LibreOffice Impress Files Smaller Without Blurring Images

Reduce oversized LibreOffice presentation files by compressing embedded photos, choosing sensible image settings, and checking slide quality before sharing.

Stop Custom-Size Prints from Cropping in LibreOffice

Stop Custom-Size Prints from Cropping in LibreOffice

Match LibreOffice’s page dimensions to your printer, check printable margins, and correct scaling before printing a custom-size document.

Speed Up Calc Macros by Reading and Writing Data in Batches

Speed Up Calc Macros by Reading and Writing Data in Batches

Replace repeated cell access with bulk range reads and writes, then benchmark the result and protect formulas in large Calc workbooks.

Organize a LibreOffice Book with Linked Master Documents

Organize a LibreOffice Book with Linked Master Documents

Split a long manuscript into chapters, assemble them in Writer, and keep styles, contents, and export checks consistent.

Connect LibreOffice Base to PostgreSQL with the Built-In Wizard

Connect LibreOffice Base to PostgreSQL with the Built-In Wizard

Use Base’s direct PostgreSQL option to enter your server details, sign in, save an ODB connection file, and troubleshoot common access errors.

Make Custom Fonts Available to LibreOffice Flatpak

Make Custom Fonts Available to LibreOffice Flatpak

Install a font in your Linux user font folder, restart LibreOffice Flatpak, and confirm it appears in Writer without weakening the app sandbox.

Stop LibreOffice Save Crashes on Sonoma: Work Locally First

Stop LibreOffice Save Crashes on Sonoma: Work Locally First

Protect your work and isolate network-drive save crashes in LibreOffice on macOS Sonoma with a local-first workflow, permission checks, and targeted tests.

Keep CSV IDs Intact in Calc by Importing Them as Text

Keep CSV IDs Intact in Calc by Importing Them as Text

Preserve leading zeros in Calc by setting ID columns to Text during CSV import, checking the preview, and verifying the saved data.