Page 1 of 2

[Solved] Libreoffice base complaints no JRE installed

Posted: 2020/12/06 18:26:14
by lightman47
******************************** 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.

Re: Libreoffice base complaints no JRE installed

Posted: 2020/12/06 21:36:23
by pjsr2
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$'

Re: Libreoffice base complaints no JRE installed

Posted: 2020/12/06 23:43:53
by gerry666uk
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"

Re: Libreoffice base complaints no JRE installed

Posted: 2020/12/07 00:37:23
by lightman47
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.

Re: Libreoffice base complaints no JRE installed

Posted: 2020/12/07 18:10:19
by sml
The correct command is

Code: Select all

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

Re: Libreoffice base complaints no JRE installed

Posted: 2020/12/08 15:17:06
by lightman47
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.

Re: Libreoffice base complaints no JRE installed

Posted: 2020/12/08 15:42:34
by TrevorH
Search bugs.centos.org or perhaps the CentOS mailing list. I remember reading something on one of those talking about libreoffice and java.

Re: Libreoffice base complaints no JRE installed

Posted: 2020/12/08 15:45:03
by lightman47
Ah - thank you; I'll do that.

Re: Libreoffice base complaints no JRE installed

Posted: 2020/12/08 16:33:50
by lightman47
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(?).

Re: Libreoffice base complaints no JRE installed

Posted: 2020/12/10 18:07:15
by gerry666uk
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"