Bug 156950 - JAVA JDK not recognised as installed
Summary: JAVA JDK not recognised as installed
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.5.5.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-27 17:00 UTC by kermit999
Modified: 2023-09-05 17:37 UTC (History)
3 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 kermit999 2023-08-27 17:00:53 UTC
Not very computer savvy, I'm 76 and I don't understand why versions since v7.44 will not recognise that java v20.0.2 is really installed on my M2 macbook pro. looks like I am stuck with v7.44 if using BASE, which is all the time!
Comment 1 m_a_riosv 2023-08-27 20:32:04 UTC
Maybe an errant question, are both JDK and LibreOffice 32 or 64 bits.
Comment 2 kermit999 2023-08-28 13:17:04 UTC
Yes, as far as I know. I read the instructions for JAVA carefully, and selected the correct download, and the recommended download from LibraOffice site. both are 64 bit.
Comment 3 kermit999 2023-08-28 13:33:30 UTC
LibreOffice_7.5.5_macOS_x86-64.dmg
jdk-20_macOS-aarch64_bin.dmg

This is what I have installed. BASE says there is no java installed, but it definitely is.
In TERMINAL Java -version gives:-
Java version "20.0.2" 2023-07-18
Java(TM) SE Runtime Environment (build 20.0.2+9-78)
Java Hotspot(TM) 64 bit server VM(build 20.0.2+9-78)
Since it is BASE I actually installed LibraOffice for, I have reverted to version 7.4.4, which works fine, and actually accepts Java is installed
Hope that helps ?
Comment 4 Alex Thurgood 2023-09-05 10:52:28 UTC
@kermit999 : could you let us know which provider of the JDK you are using, i.e. where did you download it from ?

From the file name of the DMG, it sounds like an Oracle one.

I'm running:

openjdk 20.0.2 2023-07-18
OpenJDK Runtime Environment Temurin-20.0.2+9 (build 20.0.2+9)
OpenJDK 64-Bit Server VM Temurin-20.0.2+9 (build 20.0.2+9, mixed mode)

and Java is recognized within LO 

Version: 7.5.4.2 (AARCH64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 8; OS: Mac OS X 13.4; UI render: Skia/Raster; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded


By chance, are you using the LO app provided through the AppStore ? If so, then there is unfortunately no Java support at all in that version.
Comment 5 Alex Thurgood 2023-09-05 10:55:32 UTC
(In reply to kermit999 from comment #3)
> LibreOffice_7.5.5_macOS_x86-64.dmg
> jdk-20_macOS-aarch64_bin.dmg
> 

I just re-read the above post.

You can't use JDK aarch64 with an Intel x86_64 version of LibreOffice, the architectures have to match.
Comment 6 Alex Thurgood 2023-09-05 10:59:41 UTC
(In reply to kermit999 from comment #3)
> LibreOffice_7.5.5_macOS_x86-64.dmg
> jdk-20_macOS-aarch64_bin.dmg
> 

Remove the x86_64 version of LO, and install the aarch64 version of LibreOffice instead.
Comment 7 kermit999 2023-09-05 14:02:03 UTC
Alex. Thank you for your info. I downloaded the DMG from Oracle, it must have been pointed out to me somewhere along the line, or I would have never found my way there ! (I think it was when trying to open a BASE db - a message flashed up, gave the address, sorry, I can't try it again as all is working now)
As for LO, I downloaded it from their home download page..
Anyway, looking at your installed package, I searched for openjdk, and downloaded "openlogic-openjdk-17.0.8+7-mac-x64.pkg" - I installed this, and now LOv7.6.0 BASE works just fine - so far!
Many thanks for pointing me in the right direction