Bug 155668 - LibreOffice fails to detect Oracle Java 8 Update 371
Summary: LibreOffice fails to detect Oracle Java 8 Update 371
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.7.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Java-Runtime-JRE-Warnings
  Show dependency treegraph
 
Reported: 2023-06-03 21:11 UTC by Ulrich Windl
Modified: 2024-01-26 03:03 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Windl 2023-06-03 21:11:08 UTC
After updating my 7.4 series (I think it was 7.4.5) to 7.4.7 I see a message that Java is not detected, and I should install and select one.
However I have Oracle Java 8 Update 371 for x86 and x86_64 installed.

When I open die dialog to select Java, no Java is detected.

Version: 7.4.7.2 (x86) / LibreOffice Community
Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 1 Ulrich Windl 2023-06-03 21:15:20 UTC
I had to add the path C:\Program Files (x86)\Java\jre-1.8 manually.
Comment 2 Hossein 2023-06-03 22:09:02 UTC
(In reply to Ulrich Windl from comment #1)
> I had to add the path C:\Program Files (x86)\Java\jre-1.8 manually.
Could you please test with the latest LibreOffice 7.5:
https://www.libreoffice.org/download/download-libreoffice/
and also newer Java versions, at least JRE 11?
Comment 3 Ulrich Windl 2023-06-04 20:02:54 UTC
(In reply to Hossein from comment #2)
> (In reply to Ulrich Windl from comment #1)
> > I had to add the path C:\Program Files (x86)\Java\jre-1.8 manually.
> Could you please test with the latest LibreOffice 7.5:
> https://www.libreoffice.org/download/download-libreoffice/
> and also newer Java versions, at least JRE 11?

If the Java was OK for the older 7.4 version, wouldn't it be a regression if it's no longer OK or detected in the recent 7.4 version?
Also: My Java is updating itself periodically, and I did not see a message that the version is obsolete. So I assume my version is "new enough".
When I tried to check the state at java.com I got: "This site https://www.java.com/ is experiencing technical difficulty." Oh well... Try another time.
Comment 4 sdc.blanco 2023-06-07 12:00:42 UTC
I upgraded from Java 8, Update 361 to Java 8, Update 371.
After that, the JRE was not shown in the Tools - LibreOffice - Advanced window, and any attempt to "Add" resulted in an error message: "The folder you selected does not contain a Java runtime environment.
Please select a different folder"

Tested with:

Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: f3aab159f1c1e00c25e6b4ca1e50813bc343f4f3
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL threaded

(same problem with 7.2.7.2 as well)

No problems with Java 8, Update 361
Comment 5 sdc.blanco 2023-08-10 11:14:56 UTC
Additional information:

Update in comment 4 was done using the update button in the Java application.
Later, I removed Java and manually installed the 64-bit version of Java Version 8 Update 371, and then it appeared in both versions of LO mentioned in comment 4.

Maybe NOTOURBUG -- if the Java update is installing the wrong version of Java.
Comment 6 Mike Kaganski 2023-10-01 15:00:18 UTC
(In reply to sdc.blanco from comment #5)
> Maybe NOTOURBUG -- if the Java update is installing the wrong version of
> Java.

Maybe related: https://www.oracle.com/java/technologies/javase/8all-relnotes.html#JDK-8306784