Has anyone ever gotten the JDK to work in LibreOffice?

I am not able to get LibreOffice to recognize the Java Runtime Environment. Any tips?

Requirements:
I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata

OpenMandriva Lx version:
OpenMandriva Lx release 25.06 (ROME) Rolling for x86_64

Desktop environment (KDE, LXQT…):
KDE Plasma Version: 6.3.4

Description of the issue (screenshots if relevant):
Every time I try to manually tell LibreOffice where to find the place that JDK is installed, it just tells me that it didn’t find JDK there. Any tips to fix this? Thanks so much!

Relevant informations (hardware involved, software version, logs or output…):
Operating System: OpenMandriva ROME 25.06
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-desktop-3omv2590 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-7820HQ CPU @ 2.90GHz
Memory: 31.1 GiB of RAM
Graphics Processor 1: Intel® HD Graphics 630
Graphics Processor 2: AMD Radeon Pro WX Series
Manufacturer: Dell Inc.
Product Name: Precision 7520

Could you please post the output of `rpm -qa | grep libreoffice’?

If I remember correctly you need to have libreoffice-java installed. And I do not believe that is installed by default in OMLx whether Cooker, ROME, or Rock.

If that is not the “fix” then my alternate answer is “I don’t know”. Fortunately there are people in the forum that know more than I do.

Plus if you wish to talk to developers and packagers you can do so at OpenMandriva Chat.. The OpenMandriva channel is for users with problems and new folks with problems installing or configuring their system. There is OpenMandriva Chat for off topic chat. OpenMandriva Cooker channel is a work group it is where developers and maintainers work.

1 Like

It worked perfectly! I have the Zotero extension in LibreOffice working great on two seperate OpenMandriva machines now. Thanks so much!

1 Like

Just a note: it looks like libreoffice-java pulls in an old Java 13 JDK. I don’t know who maintains that package, but it might need an update.

Gotcha - thanks for that note. It is the only one that I’ve gotten to work - I wonder how I might be able to make a more updated version work.

LO 25.2.3 I think was release in April 2025, this is the version currently in ROME. It looks to me like it uses java-21-openjdk:

I do not recall why Java 13 also gets pulled but @bero would know. Cooker currently has libreoffice-25.2.5.1 and that will likely be in the next, we hope soon, ROME (rolling) upgrade.

Edit: Packaging libreoffice is a lot of difficult work for OM devs. OM devs do stay aware of what gets released upstream not just for LO but in general. Some things can not be upgraded in OM right away. Why? Getting dependencies resolved can be very difficult and time consuming and LO is one of those projects that tends to be this way. Java is perhaps even more difficult.

@sez11a I did talk to @bero about that and this looks like it is a bug. LO should probably only need java-21-openjdk. I also doubt libreoffice-java needs java-21-openjdk-devel. So this is probably already on a To Do list to fix, but I doubt it would be a high priority.

Thank you! I agree; I doubt it needs the -devel package; I think it only needs to run Java-based code. But it should use the latest LTS, which is 21.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.