Fix “LibreOffice Requires a Java Runtime Environment (JRE)” Error

If LibreOffice says it requires a Java Runtime Environment (JRE), the message usually appears when you open a feature that depends on Java or when LibreOffice cannot find a usable runtime. You have two valid fixes: turn off Java support if you do not use Java-dependent tools, or install and select a compatible runtime if you do. The right choice depends on whether you rely on LibreOffice Base, Java-based extensions, macros, or database connections.

A JRE is the software that runs Java applications. It is separate from LibreOffice, and installing one does not change Writer or Calc documents. LibreOffice documentation says Java is needed only for features that use the Java platform; the exact feature set can depend on the component and release. This guide uses the current Advanced settings documented by LibreOffice. Illustrative interface images below are examples rather than exact screenshots; labels and layout can vary by operating system and version.

LibreOffice Options window with Advanced selected in the left navigation pane.
Open LibreOffice’s Advanced preferences to reach the Java runtime controls; the other visible options are not part of this fix.

Choose the fix that matches how you use LibreOffice

ChoiceBest whenTrade-off
Disable Java supportYou use Writer, Calc, Impress, or Draw and do not need Java-dependent features.The warning should stop for Java-dependent actions, but those actions will remain unavailable.
Install your operating system’s OpenJDK runtimeYou want Java features and prefer updates through your normal system package manager.Package versions and LibreOffice integration depend on your distribution.
Install a vendor-provided JREYou need a specific runtime build across multiple computers or your OS repository does not provide a suitable one.You must choose the correct operating system and CPU architecture and keep that runtime updated yourself.

If you are unsure, start by identifying the feature that raised the message. LibreOffice Base functions, certain database drivers, Java components, and some extensions can need Java. Ordinary Writer editing usually does not. Do not disable Java on a shared workstation until you have checked whether another person or a Base workflow depends on it.

Option 1: Turn off Java when you do not need it

In LibreOffice, open Tools > Options > LibreOffice > Advanced, then clear Use a Java runtime environment. On macOS, the preferences entry may be under the LibreOffice application menu; wording and navigation can differ between releases. If you do not see the same path, use LibreOffice Help to find the Advanced options page.

LibreOffice Java Options pane with the Use a Java runtime environment checkbox cleared.
Clear the Java checkbox only if the Java-dependent features shown in your workflow are unnecessary.

Select OK and reopen the action that displayed the warning. If the alert no longer appears and your normal documents still open, the change worked for your everyday workflow. If a Base wizard, a Java extension, a macro, or a database connection then fails, turn the checkbox back on and use Option 2. Disabling Java hides the dependency; it does not install a missing runtime or make a Java-dependent feature work.

Option 2: Install and select a compatible runtime

1. Check LibreOffice’s architecture first

LibreOffice requires a JRE that matches its own architecture. The official Advanced-options help specifically calls for a 64-bit JRE with 64-bit LibreOffice and a 32-bit JRE with 32-bit LibreOffice. Your operating system being 64-bit does not by itself prove that the installed LibreOffice is 64-bit. Check the LibreOffice package or About information and confirm whether it is 32-bit or 64-bit before downloading Java.

LibreOffice Java Options pane showing generic 64-bit and 32-bit runtime entries in an installed-runtime list.
Choose the runtime whose architecture matches LibreOffice; the example entries are generic and do not identify a required Java version.

2. Pick a runtime source

On Linux, the distribution’s OpenJDK runtime is often the simplest starting point because the package manager handles installation and security updates. Use the package search or documentation for your distribution and select a Java runtime package, not a development kit unless your organization specifically requires one. The package name and available Java releases vary by distribution, so a single command is not reliable for every Linux system.

For a separately managed runtime, use a JRE from a reputable vendor and download it from that vendor’s official site. Eclipse Adoptium’s Temurin release page provides operating-system, architecture, and package-type filters. Choose a release compatible with your LibreOffice version and environment; the LibreOffice help page specifies the architecture match but does not establish one Java major version that fits every LibreOffice installation. In a managed workplace, follow the organization’s approved software and update policy.

Do not download a runtime from a third-party “driver” or download mirror. Java is executable software; using the vendor’s or distribution’s signed package makes the source and update channel easier to verify.

3. Restart LibreOffice and select the runtime

Close all LibreOffice windows, install the runtime, and reopen LibreOffice. Go back to Tools > Options > LibreOffice > Advanced. Enable Use a Java runtime environment. Wait for the installed-runtime list to populate; LibreOffice notes that some systems can take a short time and may require a restart after a change.

Select the listed runtime that matches LibreOffice’s architecture, then choose OK. If the list remains empty even though Java is installed, use Add to browse to the root folder of the JRE, not to a random Java file or a desktop shortcut. The path differs by operating system and vendor, so use the folder identified by the installer or package manager.

LibreOffice Advanced Java settings beside a folder chooser with a generic Java runtime directory selected.
If LibreOffice does not list an installed JRE, use Add to select the runtime’s installation folder as described by its installer.

Verify the result with the feature that raised the message

Return to the original action rather than testing only whether LibreOffice opens. For example, reopen the Base wizard or extension that prompted for Java. A successful check means the feature proceeds past the JRE warning and completes its expected next step. If the warning remains, confirm all four items: the runtime installation completed, Java is enabled, the runtime appears in the list, and its architecture matches LibreOffice. Restart once more after selecting a newly added runtime.

If LibreOffice still cannot detect Java, reinstalling the same runtime repeatedly is unlikely to help. Check whether LibreOffice and Java came from different packaging channels, whether the runtime is inside a sandboxed package, and whether your system administrator manages Java discovery. The right remedy can depend on how LibreOffice was installed; consult your distribution’s LibreOffice packaging guidance or the LibreOffice help forums with your operating system, LibreOffice version, and runtime details.

What the fix does—and what it does not do

Installing a JRE restores access to Java-dependent LibreOffice features when the runtime is supported, detected, and correctly selected. It does not guarantee that every third-party extension or database driver supports the installed Java version. Conversely, turning off the checkbox is a reasonable configuration for users who do not need Java features, but it cannot satisfy a workflow that explicitly requires Java.

For a general office setup, keep Java disabled if you never use a Java-dependent feature and the warning disappears. For Base, Java-based extensions, or Java database connectivity, keep Java enabled and install a runtime matched to LibreOffice’s architecture. Revisit the choice after LibreOffice or Java upgrades, because package paths and supported combinations can change.

Official references

Leave a Comment

How to Create and Send a Meeting Invite in Outlook

How to Create and Send a Meeting Invite in Outlook

Create an Outlook meeting invite, add required or optional attendees, choose a time, add Teams details, set recurrence, and check replies in new or classic Outlook.

How to Add a Character Limit to Cells in Excel

How to Add a Character Limit to Cells in Excel

Use Excel's Data Validation settings to set a maximum, minimum, exact length, or character range, then add clear prompts and error alerts.

How to Fix the “We Can’t Schedule the Meeting” Error in Outlook

How to Fix the “We Can’t Schedule the Meeting” Error in Outlook

Fix the Outlook “We can’t schedule the meeting” error by checking account support, refreshing Teams sign-in, and repairing the Classic Outlook add-in.

How to Change the Language in Office 365 (Microsoft 365)

How to Change the Language in Office 365 (Microsoft 365)

Change Office 365 menus, spelling and grammar settings, or keyboard input in desktop apps and Microsoft 365 for the web.

How to Auto-Forward Emails in Outlook 365

How to Auto-Forward Emails in Outlook 365

Learn how to auto-forward all or selected emails in Outlook 365 using Forwarding settings or Rules, plus how to stop forwarding and fix blocked external forwards.

How to Use Microsoft Editor in Word for Microsoft 365

How to Use Microsoft Editor in Word for Microsoft 365

Use Microsoft Editor in Word for Microsoft 365 to check spelling, grammar, clarity, and conciseness, review suggestions, and tune proofing settings.

How to Add an RSS Feed to Outlook 365 in Classic Outlook

How to Add an RSS Feed to Outlook 365 in Classic Outlook

Learn how to add an RSS feed to Outlook 365 in classic Outlook for Windows, find the correct feed URL, manage subscriptions, and fix common RSS issues.

How to Go to a Page in Word for Microsoft 365

How to Go to a Page in Word for Microsoft 365

Jump straight to any page in Word for Microsoft 365 with Ctrl+G or F5, relative page numbers, or the Navigation pane, with Windows and Mac shortcuts.

How to Add Contacts to Outlook on Web, Windows, and Mobile

How to Add Contacts to Outlook on Web, Windows, and Mobile

Learn how to add contacts to Outlook on the web, new Outlook, classic Outlook, and mobile, plus how contact syncing and CSV imports work.

How to Change the Microsoft Word Background Color or Add an Image

How to Change the Microsoft Word Background Color or Add an Image

Change a Word page color, add a picture background, remove either, and enable background printing on Windows or Mac with clear, current steps.