[Libreoffice-bugs] [Bug 135479] LO Complains about missing JDK when accessing any Java functionality, despite recognizing JDK on macOS under Preferences

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 18 08:34:31 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=135479

Stephan Bergmann <sbergman at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cloph at documentfoundation.or
                   |                            |g, tml at iki.fi

--- Comment #17 from Stephan Bergmann <sbergman at redhat.com> ---
(In reply to Stephan Bergmann from comment #16)
> * TDF
> <https://www.libreoffice.org/donate/dl/mac-x86_64/7.0.0/en-US/LibreOffice_7.
> 0.0_MacOS_x86-64.dmg> fails with the "JRE Is Defective" error dialog
> ("LibreOffice requires a Java runtime environment (JRE) to perform this
> task. The selected JRE is defective. Please select another version or
> install a new JRE and select it under LibreOffice - Preferences -
> LibreOffice - Advanced.")  When run from the command line, it outputs the
> following:
> 
> > $ /Applications/LibreOffice.app/Contents/MacOS/soffice
> > Error occurred during initialization of VM
> > Could not reserve enough space in CodeHeap 'non-nmethods' (2496K)
> > JavaVM: JNI_CreateJavaVM called os::abort(), caught by abort_handler in javavm.cxx
> > [Java framework] sunjavaplugin.dylibCan not create JavaVirtualMachine, abort handler was called.

Searching the web for that "Could not reserve enough space in CodeHeap
'non-nmethods' (2496K)" message turns up
<https://github.com/AdoptOpenJDK/openjdk-build/issues/1130> "MacOS hardened
runtime support".  It mentions a
com.apple.security.cs.disable-executable-page-protection key set to true, a
setting which our
<https://git.libreoffice.org/core/+/2c366aae9263dc4115b054fe74b90cabea61fa0b%5E%21>
"Use a less extreme entitlement for our run-time machine code generation"
appears to have dropped from hardened_runtime.xcent.in starting with LO 7.0. 
So that commit might be related.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200818/f5bf2518/attachment.htm>


More information about the Libreoffice-bugs mailing list