I’d like to install and configure the Java JDK for use with Base, in LibreOffice 188.8.131.52 running on MacOS 10.13.6.
First, I installed JDK 17.0.2 from Oracle’s website using their x64 DMG installer (i.e. the latest installer for MacOS with Intel processor). Installation succeeded, placing the JDK at /Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home, and that’s the path shown under Java Options in the LibreOffice Advanced preferences. However, I received an error message from LibreOffice (after restarting): “The selected JRE is defective. Please select another version or install a new JRE…”
Next, upon further investigation it looks like the 17.0.2 JDK doesn’t work with MacOS 10.13.4, so I needed an older version. Deleted 17.0.2, and installed an older version for MacOS 10.13 found at Download Java for OS X 2017-001. That installed to /Library/Java/JavaVirtualMachines/1.6.0.jdk, with a number of subfolders. Restarted Mac and LibreOffice at this point. Regardless of which folder I select starting in that path (using LibreOffice Preferences>LibreOffice>Advanced), I get the error message “The folder you selected does not contain a Java runtime environment. Please select a different folder.”
Finally, using a hint I found in another thread at this forum (from Ratslinger - thank you @Ratslinger) I used the terminal to search for the java runtime file, which was found at /System/Library/Frameworks/JavaVM.framework/Versions/A. Selecting that path (and all higher level folder and subfolders) for LibreOffice in Advanced Preferences still yields the same error message as before: “The folder you selected does not contain a Java runtime environment. Please select a different folder.”
If someone can point me in the right direction to get JDK working on this combination of LibreOffice and MacOS I’d be very grateful for your help! Please let me know if there is any additional information needed to address this. Many thanks in advance.