How to Fix: LibreOffice requires a Java runtime environment Error

This quick guide explains how you can fix the LibreOffice requires a Java runtime environment (JRE) error.

LibreOffice – the free office suite requires Java runtime environment for some of its own functionalities. For example, some of the plugins, extensions, Python macros require Java Runtime Environment (JRE) to work.

Lack of JRE, would cause the below error in LibreOffice:

LibreOffice requires a Java runtime environment (JRE) to perform this task. Please install a JRE (and libreoffice-java-common) and restart LibreOffice.

JRE Required Error
JRE Required Error

This happens when JRE is not installed in your OS – be it either Windows or Linux. Before you go ahead and try to fix via installing JRE, first you have to check whether Java Runtime Environment is installed in your system or not.

How to check if LibreOffice detected Java Runtime Environment

Before you install Java Runtime Environment to fix the issue, follow below steps to check whether Java is installed and LibreOffice is able to detect it.

  • Open LibreOffice (calc, Impress etc).
  • Go to from Menu : Tools -> Options -> Advanced under LibreOffice.
  • Under Java Options window, if Java is installed you would see it listed. If not, there will not be any entries.

How to Fix JRE Error – LibreOffice


  • Download Oracle Java Runtime Environment from below official link and install in Windows.
  • Close all the LibreOffice instances.
  • Restart LibreOffice and perform the task which gave you the error. You should not be receiving the error anymore.

Linux, Ubuntu, RHEL, Fedora

  • If you are running Ubuntu, open terminal (CTRL+ALT+T) and run below commands:
sudo apt install default-jre
sudo apt install libreoffice-java-common
  • Once installation is finished, close all instances of LibreOffice.
  • Restart LibreOffice and perform the task which you were doing causing the error.
  • You should not be receiving any more error.

For other Linux distributions, download the related package (RPM etc) from above official Oracle download page.

If you have successfully installed the Java Runtime Environment, then go to Tools -> Options -> Advanced again and you can see Java is listed (see below). Select the JRE and press OK.


The above steps should solve the JRE error for LibreOffice. If you are still facing error, drop a comment below.

For the latest tutorials, app reviews and how-to guides, follow on Twitter, Facebook, and subscribe to our YouTube channel and email updates via below form.

Join 508 other subscribers.