libreoffice latest version not detecting my java installation

Bug #2052457 reported by Danilo Alculete
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Fix Committed
Medium
Unassigned

Bug Description

I have JDK21 installed after the latest release the path to the JDK disappeared and I'm unable to use some tools (Libreoffice snap)

Tags: snap
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
jorritlinnert (jorrit-linnert) wrote :

Date: 3th of March 2024:

Environment:
- OS: Ubuntu 23.10 64Bit (fully updated)
- Installed JRE's: openjdk-11-jre:amd64 (11.0.22+7-0ubuntu2~23.10.1), openjdk-21-jre:amd64 (21.0.2+13-1~23.10.1)
- LibreOffice 24.2.0.3 Canonical Snap (published: Feb 5, 2024)

Steps to reproduce:
- Start LibreOffice 24.2.0.3 from dash
- Open odb-database (type: HSQLDB)
- Click on Left Side-Bar to open Table Overview

Expected result: Show list of tables
Real result : Error message:
-----------------
JRE Required
LibreOffice requires a Java runtime environment (JRE) to perform this ,
task. Please install a JRE and restart LibreOffice. https://hub.libreoffice.org/installiava/?LOlocale=en-US
-----------------
followed by this error message:
-----------------
LibreOffice Base -
The connection to the data source "JL_Inventaris" could
not be established. at /build/libreoffice/parts/libreoffice/
build/dbaccess/source/ui/misc/datasourceconnector.cxx:
177
No Java installation could be found. Please check your installation. at /
build/libreoffice/parts/libreoffice/build/connectivity/source/
commontools/dbexception.cxx:403
----------------

Excerpt of Journal (journalctl -xe):
-----------
mrt 03 12:56:10 Ubuntu23_10 libreoffice_base.desktop[17677]: Traceback (most recent call last):
mrt 03 12:56:10 Ubuntu23_10 libreoffice_base.desktop[17677]: File "/snap/libreoffice/305/javasettings.py", line 45, in <module>
mrt 03 12:56:10 Ubuntu23_10 libreoffice_base.desktop[17677]: java_output).group("version")
mrt 03 12:56:10 Ubuntu23_10 libreoffice_base.desktop[17677]: AttributeError: 'NoneType' object has no attribute 'group'

Thanks in advance for the people picking this up.

In the meantime, I'm uninstalling this snap version in favour of the latest .deb-package.
Please keep me updated.

Revision history for this message
jorritlinnert (jorrit-linnert) wrote :

Note: I have installed the stable version, rather than the strictly "latest" version because I don't trust release candidates or Beta's with my files.

Revision history for this message
jorritlinnert (jorrit-linnert) wrote :

I've dug a little deeper into the possible reason why the JRE cannot be found:
All installed JRE's are installed under a subdirectory of the /usr directory. When I try to select the JRE to use, I notice that this Snap does not have any permission to access the /usr directory.
Am I missing some alternative path?

Tom Reynolds (tomreyn)
tags: added: snap
Revision history for this message
Danilo Alculete (alculete) wrote :

It seems no JRE was packed

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :
Changed in libreoffice (Ubuntu):
status: Confirmed → Fix Committed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.