Bug 149724 - impossible to use Java on 7.2.7.2 for MAC M1
Summary: impossible to use Java on 7.2.7.2 for MAC M1
Status: RESOLVED DUPLICATE of bug 144128
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
7.2.7.2 release
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-25 05:23 UTC by Robert
Modified: 2022-06-30 13:37 UTC (History)
5 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 Robert 2022-06-25 05:23:33 UTC
Description:
LibreOffice does not detect JAVA. 
All fields are read only on the setup section

if you do the 7.2.7.2 for MAC puce intel installation  it's ok
idem for the 7.3.xx versions, it's ok

I have 2 JRE version installed on my Mac 
Elipse adpotium 18.0.1 and Temurin 1.8.0_332

if I install 7.2.7.2 for MAC puce intel I see these two version on libreOffice setup
if I install 7.3.x.x for MAC puce intel I see only the adpotium 18.0.1 version on libreOffice setup
if I install 7.3.x.x for MAC puce M1 I see nothing on libreOffice setup


Steps to Reproduce:
1. install a java runtime
2. install 7.2.7.2 on MAC M1
3. go to préférences and check the java setup

Actual Results:
LibreOffice does not detect JAVA. 
All fields are read only on the setup section


Expected Results:
impossible to get JRE on LibreOffice


Reproducible: Always


User Profile Reset: Yes



Additional Info:
if you do the 7.2.7.2 for MAC puce intel installation  it's ok
idem for the 7.3.xx versions, it's ok

I have 2 JRE version installed on my Mac 
Elipse adpotium 18.0.1 and Temurin 1.8.0_332

if I install 7.2.7.2 for MAC puce intel I see these two version on libreOffice setup
if I install 7.3.x.x for MAC puce intel I see only the adpotium 18.0.1 version on libreOffice setup
if I install 7.3.x.x for MAC puce M1 I see nothing on libreOffice setup
Comment 1 m_a_riosv 2022-06-28 22:07:46 UTC
If I remember fine, for Mac you need JDK installed not JRE.
Comment 2 Robert 2022-06-29 06:27:53 UTC
Hello 

I have done tests with the JDK and not the JRE
It was an error on my description

the file used for Java installation indicate JDK on filename:
OpenJDK8U-jdk_x64_mac_hotspot_8u332b09.pkg
OpenJDK18U-jdk_aarch64_mac_hotspot_18.0.1_10.pkg
Comment 3 Alex Thurgood 2022-06-29 08:47:35 UTC
(In reply to Robert from comment #2)

> 
> the file used for Java installation indicate JDK on filename:
> OpenJDK8U-jdk_x64_mac_hotspot_8u332b09.pkg
> OpenJDK18U-jdk_aarch64_mac_hotspot_18.0.1_10.pkg

Hi,

In current releases: 

- the x64 JDK version should only be visible in an x64 version of LibreOffice.

- similarly, the aarch64 JDK version should only be visible in the Arm version of LibreOffice.

The fact that you could see both versions of different architecture JDKs in 7.2.x was an error.

Confirming with
Version: 7.1.8.1 / LibreOffice Community
Build ID: e1f30c802c3269a1d052614453f260e49458c82c
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

In LO 7181, I see both x64 and aarch64 versions of Oracle JDK (in fact I see a whole load of much older versions that are installed on my system as well), but that doesn't mean that they will all work correctly with LO, or be crash-free (quite the opposite, in my experience).

Confirming with regard to multiple JDK entries in versions <=7.2, but given that 7.2 is EOL since June 12th, 2022, nothing more will happen here, and I can't confirm the lack of recognition of JDK in 7.3.4.2 for Arm.


It may be, of course, that the Adoptium/termium aarch64 OpenJDK version isn't recognized, I haven't tested that part of the report, as Oracle JDK works for me.
Comment 4 Alex Thurgood 2022-06-29 08:57:39 UTC
The lack of any JDK recgonition in LO 7.2.x for Arm was already known from bug 144128 (and also bug 146444).

@Robert : 7.2 is EOL.

If you want to open a bug report against non-recognition of the latest stable release of Adoptium/termium aarch64 OpenJDK version in 7.3, and put me on copy, I can confirm that.

Alex

*** This bug has been marked as a duplicate of bug 144128 ***
Comment 5 Stephan Bergmann 2022-06-29 09:03:15 UTC
(In reply to Alex Thurgood from comment #4)
> If you want to open a bug report against non-recognition of the latest
> stable release of Adoptium/termium aarch64 OpenJDK version in 7.3, and put
> me on copy, I can confirm that.

...and please leave a link to any such newly opened bug here
Comment 6 Alex Thurgood 2022-06-29 15:39:27 UTC
(In reply to Stephan Bergmann from comment #5)

> 
> ...and please leave a link to any such newly opened bug here


Hi Stephan,

It was quicker for me to open it myself : bug 149773
Comment 7 Alex Thurgood 2022-06-29 15:47:54 UTC
@Robert : could you go and confirm bug 149773 ?
Comment 8 Robert 2022-06-29 18:09:12 UTC
I have no problem with my LibreOffice 7.3.x installation
Adoptium/Temurin OpenJDK 18.0.1_10 version is detected for ARM
Comment 9 Alex Thurgood 2022-06-30 13:37:05 UTC
(In reply to Robert from comment #8)
> I have no problem with my LibreOffice 7.3.x installation
> Adoptium/Temurin OpenJDK 18.0.1_10 version is detected for ARM

Yes, correct, sorry about that, the tar.gz bundle provides archived debug symbols and not the binaries, my mistake.