Mac User Learning Base receive message that JRE is defective

MacOS up to date - Big Sur
LO up to date - version 7
Experienced computer user, just learning Base
THIS IS A LEARNING PROJECT for me.

Created simple table, wishing to create form, but receive message saying JRE is defective.
Where / How do I find JRE which is not defective?
–lepast47

This is a duplicate of your question https://ask.libreoffice.org/en/question/280193/mac-user-learning-base-receive-message-that-jre-is-defective/.

Hello,

this is bug tdf#135479 - LO Complains about missing JDK when accessing any Java functionality, despite recognizing JDK on macOS under Preferences

See especially comment #9 of the bug report, which states that JDK 12.0.2 is working.

[Update] Here is a procedure that worked for me:

  • Stop (Quit) LibreOffice
  • Open a Terminal (Launchpad - Search for “Terminal”)
  • cd Downloads
  • curl -O https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_osx-x64_bin.tar.gz
  • sudo mkdir -p /Library/Java/JavaVirtualMachines/ (password requied)
  • sudo tar -xvf openjdk-12.0.2_osx-x64_bin.tar.gz -C /Library/Java/JavaVirtualMachines/
  • Start LibreOffice
  • LibreOffice -> Preferences -> LibreOffice > Advanced and check Java/JRE

Hope that helps.

Came here after googling the same error message (due to installing Zotero connector). I’ve got the same setup as OP. Your solution fixed it for me. Thanks!

I have Macintosh OS 11.0 and the most current versions of LO and Zotero. The same annoying message about not being able to find JRE appeared when I start LO. The suggested string of Terminal commands does fix the issue; LO can also now communicate with Zotero.

There are however a few strange pieces of advice (or observations) which I can provide:

  1. You can install either “JDK-15.0.1.jdk“ or “adoptopenjdk-15.jdk” directly from the Internet. However, LO won’t recognize them.
  2. The final string of Terminal commands is “LibreOffice → Preferences → LibreOffice > Advanced”. At least in my case, the Terminal responds with "-bash: LibreOffice: command not found ".

This doesn’t appear to disrupt the functionality of either LO or Zotero (so far).

PS – the formatting function to create a numbered list in this response window don’t seem to be working correctly in Firefox.

You can install either “JDK-15.0.1.jdk“ or “adoptopenjdk-15.jdk” directly from the Internet. However, LO won’t recognize them.

Did you read the bug report? The bug is exactly about not working (though recognizing) JDKs besides version 12.0.2 for whose installation the answer above provides a solution.


> The final string of Terminal commands is "LibreOffice -> Preferences -> LibreOffice > Advanced". At least in my case, the Terminal responds with "-bash: LibreOffice: command not found ".

This is not to be executed in “Terminal” but the menu path to LibreOffice configuration, where to check/set Java settings. This step is following step Start LibreOffice, hence not to be executed in “Terminal”. It is a common nomenclature to use “menu 1 -> menu 2 -> ...” to indiciate: Select menu 1 from menu bar, followed by (sub-) menu 2 and so on …