<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - LO Complains about missing JDK when accessing any Java functionality, despite recognizing JDK on macOS under Preferences"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=135479#c16">Comment # 16</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - LO Complains about missing JDK when accessing any Java functionality, despite recognizing JDK on macOS under Preferences"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=135479">bug 135479</a>
from <span class="vcard"><a class="email" href="mailto:sbergman@redhat.com" title="Stephan Bergmann <sbergman@redhat.com>"> <span class="fn">Stephan Bergmann</span></a>
</span></b>
<pre>What I found so far: I downloaded
<<a href="https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/12/GPL/openjdk-14.0.2_osx-x64_bin.tar.gz">https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/12/GPL/openjdk-14.0.2_osx-x64_bin.tar.gz</a>>
via <<a href="http://openjdk.java.net/install/index.html">http://openjdk.java.net/install/index.html</a>> -> <<a href="http://jdk.java.net/14/">http://jdk.java.net/14/</a>>
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
<<a href="https://www.libreoffice.org/donate/dl/mac-x86_64/6.4.6/en-US/LibreOffice_6.4.6_MacOS_x86-64.dmg">https://www.libreoffice.org/donate/dl/mac-x86_64/6.4.6/en-US/LibreOffice_6.4.6_MacOS_x86-64.dmg</a>>
works fine.
* TDF
<<a href="https://www.libreoffice.org/donate/dl/mac-x86_64/7.0.0/en-US/LibreOffice_7.0.0_MacOS_x86-64.dmg">https://www.libreoffice.org/donate/dl/mac-x86_64/7.0.0/en-US/LibreOffice_7.0.0_MacOS_x86-64.dmg</a>>
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:
<span class="quote">> $ /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.</span >
* 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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>