[Solved] Libreoffice base complaints no JRE installed

Issues related to applications and software problems and general support
lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

[Solved] Libreoffice base complaints no JRE installed

Post by lightman47 » 2020/12/06 18:26:14

******************************** EDIT/INSERT ************************
My solution:

Solved in: viewtopic.php?f=48&t=76420
*************************************************************************

The up to date system has this installed:

Code: Select all

Installed Packages
java-1.8.0-openjdk.x86_64          1:1.8.0.272.b10-1.el8_2            @AppStream
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.272.b10-1.el8_2            @AppStream
javapackages-filesystem.noarch     5.3.0-1.module_el8.0.0+11+5b8c10bd @AppStream
javapackages-tools.noarch          5.3.0-1.module_el8.0.0+11+5b8c10bd @AppStream
tzdata-java.noarch                 2020d-1.el8                        @AppStream
Why isn't jre installed? Do I have to go to Oracle to get it?

Thank you.
Last edited by lightman47 on 2021/01/09 18:02:46, edited 2 times in total.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Libreoffice base complaints no JRE installed

Post by pjsr2 » 2020/12/06 21:36:23

The java-1.8.0-openjdk* packages provide the JRE, you don't need anything from Oracle. I guess LibreOffice just fails to find it. In the LibreOffice settings menu, you can choose the path for the JRE. To help you find the location of the JRE,you can use:

Code: Select all

rpm -q -l java-1.8.0-openjdk | grep '/java$'

gerry666uk
Posts: 98
Joined: 2020/02/10 19:06:06

Re: Libreoffice base complaints no JRE installed

Post by gerry666uk » 2020/12/06 23:43:53

When you install LibreOffice Base for the first time, it will install 'openjdk', and be able to find it.
If you updated 'openjdk' without fixing the path in LibreOffice, it might complain it can't find it.
In LibreOffice Base, the path is set under "Tools : Options : Advanced"

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Libreoffice base complaints no JRE installed

Post by lightman47 » 2020/12/07 00:37:23

The rpm command above returns nothing - even when tried with sudo.

I've only updated weekly through dnf.

I also tried a 'dnf reinstall' of the libreoffice packages to no avail. I suppose I'll try a reinstall of everything and just let it run during the night.

sml
Posts: 305
Joined: 2020/01/17 09:01:44

Re: Libreoffice base complaints no JRE installed

Post by sml » 2020/12/07 18:10:19

The correct command is

Code: Select all

rpm -ql java-1.8.0-openjdk-headless|grep /java$

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Libreoffice base complaints no JRE installed

Post by lightman47 » 2020/12/08 15:17:06

OK - sml's command returned results on all (C7 and C8) machines, but the situation got uglier regardless. With the exception of this (C7) laptop, all the orther machines are complaining about missing jre as well. Libreoffice used to work on them, but it now complains?!?! Must be some update in java 1.8 in both CentOS's clobbered the jre - despite the positive results from that command. Yet this laptop was unaffected - scratching the brains here!!

I may just go the Oracle route - despite how much I'd like to avoid "importing" software that's not in the repos. This is nuts.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Libreoffice base complaints no JRE installed

Post by TrevorH » 2020/12/08 15:42:34

Search bugs.centos.org or perhaps the CentOS mailing list. I remember reading something on one of those talking about libreoffice and java.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Libreoffice base complaints no JRE installed

Post by lightman47 » 2020/12/08 15:45:03

Ah - thank you; I'll do that.

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Libreoffice base complaints no JRE installed

Post by lightman47 » 2020/12/08 16:33:50

And there it seems to be:

https://bugs.centos.org/view.php?id=17872

I did a "cat" on the file found with sml's command and noticed that the file on the working laptop contained "GCC: (GNU) 4.8.5 20150623 (Red Hat 4.8.5-39)GCC: (GNU) 4.8.5 20150623 (Red Hat 4.8.5-44)", while the others did not. Curious also is that the Libreoffice options/advanced window lists this as an Oracle version(?).

gerry666uk
Posts: 98
Joined: 2020/02/10 19:06:06

Re: Libreoffice base complaints no JRE installed

Post by gerry666uk » 2020/12/10 18:07:15

I've just run dnf upgrade from CentOS 8.2 to CentOS 8.3.
LibreOffice and 'openjdk' were both updated, and LibreOffice is correctly finding 'opdnjdk'
I did notice that LibreOffice is now showing 'openjdk' as "Reb Hat" as opposed to "Oracle"

Post Reply