[Libreoffice-bugs] [Bug 112609] Oracle JRE 9 not found for use automatically

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Sep 24 17:02:46 UTC 2017


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

V Stuart Foote <vstuart.foote at utsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |caolanm at redhat.com,
                   |                            |mikekaganski at hotmail.com,
                   |                            |sbergman at redhat.com,
                   |                            |vstuart.foote at utsa.edu
             Blocks|                            |103257
            Summary|Libre Office JRE 9          |Oracle JRE 9 not found for
                   |                            |use automatically
     Ever confirmed|0                           |1

--- Comment #1 from V Stuart Foote <vstuart.foote at utsa.edu> ---
The new Java 9 release seems to work correctly on a 5.4.2.1 build.

But, as Stephen B. suggested would happen bug 100501#7, for Windows builds
LibreOffice is not finding the Java Runtime and it must be located manually
with the Add button. 

Looks like to locate the "JavaHome" string we will have to change our registry
search path in the Windows Registry [1] to match the Oracle path changes.

The JRE now uses
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE\9]
"JavaHome"="C:\\Program Files\\Java\\jre-9"
"RuntimeLib"="C:\\Program Files\\Java\\jre-9\\bin\\server\\jvm.dll"

While the JDK uses
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK\9]
"JavaHome"="C:\\Program Files\\Java\\jdk-9"

Previous builds used
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_144]
"JavaHome"="C:\\Program Files\\Java\\jre1.8.0_144"
"MicroVersion"="0"
"RuntimeLib"="C:\\Program Files\\Java\\jre1.8.0_144\\bin\\server\\jvm.dll"

and we search for the "Java Runtime Environment" for JRE or "Java Development
Kit" instead of the new JRE, JDK entries.

Also, looks like there will be no 32-bit JRE for Java 9, meaning we'll have to
continue to support the older paths indefinitely. 

=-ref-=

[1]
https://opengrok.libreoffice.org/xref/core/jvmfwk/plugins/sunmajor/pluginlib/util.cxx?a=true#68

[2] http://www.oracle.com/technetwork/java/javase/jdk9certconfig-3761018.html


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=103257
[Bug 103257] [META] Java Runtime Environment (JRE) bugs and enhancements
-- 
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/20170924/b484f9b9/attachment-0001.html>


More information about the Libreoffice-bugs mailing list