[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:13:24 UTC 2020


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

--- Comment #16 from Stephan Bergmann <sbergman at redhat.com> ---
What I found so far:  I downloaded
<https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/12/GPL/openjdk-14.0.2_osx-x64_bin.tar.gz>
via <http://openjdk.java.net/install/index.html> -> <http://jdk.java.net/14/>
and unpacked it in /Library/Java/JavaVirtualMachines/ as jdk-14.0.2.jdk/.  In
all the below versions of LO it is found and can be selected fine under
"LibreOffice - Preferences... - LibreOffice - Advanced - Java Options".  Where
behavior indeed differs is when LO actually tries to make use of Java and
instantiate the in-process JVM, e.g. via "Tools - Macros - Run macro...":

* TDF
<https://www.libreoffice.org/donate/dl/mac-x86_64/6.4.6/en-US/LibreOffice_6.4.6_MacOS_x86-64.dmg>
works fine.

* 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.

* My local build of libreoffice-7.0.0.3 (but, unlike the above TDF version,
with --enable-dbgutil etc.; whether or not that makes the difference) works
fine.

-- 
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/d0c2f321/attachment.htm>


More information about the Libreoffice-bugs mailing list