[Solved] Unable to get OpenOffice to recognize AdoptOpenJDK

Discuss setup / installation issues - Add a spell checker, Language pack?

[Solved] Unable to get OpenOffice to recognize AdoptOpenJDK

Postby atcroft » Sat Nov 02, 2019 8:24 pm

Issue:
Unable to get OpenOffice 4.1.7 to recognize AdoptOpenJDK JDK with Eclipse OpenJ9 8.0.222.10 as a JRE.

Platform:
OpenOffice 4.1.7 (4.17.9800) on Windows 10 Home (v 1709, build 16299.547)
Details:
AOO417m1(Build:9800) - Rev. 46059c9192
2019-09-03 12:04
Available JDKs:
AdoptOpenJDK JDK with Eclipse OpenJ9 8.0.222.10 (x64)
AdoptOpenJDK JDK with Eclipse OpenJ9 8.0.222.10 (x86)

Question:

  • What does OpenOffice 4.1.7 look for to determine if a JRE is present in a directory?
  • Is AdoptOpenJDK JDK with Eclipse OpenJ9 supported? Or is a version using OpenJDK HotSpot needed instead?

Steps attempted:
  • Uninstalled OpenOffice 4.1.7 from system
  • Uninstalled AdoptOpenJDK (x86)
  • Uninstalled AdoptOpenJDK (x64)
  • Rebooted system
  • Installed AdoptOpenJDK (x86)
  • Installed AdoptOpenJDK (x64)
  • Rebooted system
  • Installed OpenOffice 4.1.7 on system
  • Rebooted system
  • Opened OpenOffice 4.1.7
  • Tools -> Options -> OpenOffice -> Java
  • Waited for 5+ minutes per https://forum.openoffice.org/en/forum/viewtopic.php?f=6&t=97818&p=469224&hilit=AdoptOpenJDK#p469239, no change to list of available JREs
  • Tried "Add" button, selecting various directories under the install locations (c:\Program Files\AdoptOpenJDK and c:\Program Files (x86)\AdoptOpenJDK), each time receiving the message, "The folder you selected does not contain a Java runtime environment. Please select a different folder."

Performed a search for "AdoptOpenJDK" and found the following threads:

From the 4.1.7 announcement, https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-13:
Announcing Apache OpenOffice 4.1.7

21 September 2019 - Apache OpenOffice, the leading Open Source office document productivity suite, announced today Apache OpenOffice 4.1.7, as usual available in 41 languages for Windows, macOS and Linux.

Apache OpenOffice 4.1.7 is a maintenance release aimed at correcting some regressions and delivering the latest English dictionary. All users of Apache OpenOffice 4.1.6 or earlier are advised to upgrade.

Main improvements include:

* Adds support for AdoptOpenJDK as well as Oracle Java


:crazy:
Last edited by RoryOF on Sat Nov 02, 2019 9:31 pm, edited 4 times in total.
Reason: Added green tick [RoryOF, Moderator]
OOo 4.x / multiple platforms
LibreOffice 6.x / multiple platforms
atcroft
 
Posts: 2
Joined: Sat Nov 02, 2019 7:38 pm

Re: Unable to get OpenOffice 4.1.7 to recognize AdoptOpenJDK

Postby atcroft » Sat Nov 02, 2019 9:19 pm

Documenting for completeness, in case it may be of assistance.

In my post, I asked,
Is AdoptOpenJDK JDK with Eclipse OpenJ9 supported? Or is a version using OpenJDK HotSpot needed instead?


After posting, I tested this proposition by uninstalling both x64 and x86 versions of AdoptOpenJDK JDK with Eclipse OpenJ9 8.0.222.10, rebooting, downloading and installing AdoptOpenJDK JDK with Hotspot 8.0.232.09 (x64 and x86 versions), followed by a reboot (just in case). When I opened OpenOffice (and gave it some time to search), it found AdoptOpenJDK 1.8.0_232's JRE, which was installed under "c:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.232.09-hotspot\jre".

:super:

Therefore, my initial conclusion (and I may very well be wrong) is that OOo 4.1.7 recognizes AdoptOpenJDK JDK with Hotspot, but not AdoptOpenJDK with Eclipse OpenJ9.
Can anyone else confirm this to be the case?

:geek:
OOo 4.x / multiple platforms
LibreOffice 6.x / multiple platforms
atcroft
 
Posts: 2
Joined: Sat Nov 02, 2019 7:38 pm

Re: [SOLVED] Unable to get OpenOffice to recognize AdoptOpen

Postby RoryOF » Sat Nov 02, 2019 9:29 pm

I confirm that 4.1.7 works with AdoptOpenJDK-11 with Hotspot. I have not tried the Eclipse variant.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.4 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31102
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] Unable to get OpenOffice to recognize AdoptOpen

Postby marto871 » Tue Nov 26, 2019 9:59 pm

Did you do anything specific to get the AdoptOpenJDK jre-11 hotspot to work? I have tried browsing the path to no avail and it never finds it either by auto looking it up. Oracle JRE works fine.
OpenOffice 4.1.7 on Server 2016
marto871
 
Posts: 1
Joined: Tue Nov 26, 2019 9:29 pm

Re: [Solved] Unable to get OpenOffice to recognize AdoptOpen

Postby cdburke » Sat Dec 07, 2019 10:04 pm

I'm also unable to get OpenOffice to recognize that the AdoptOpenJDK 11 JRE is a valid JRE. Even when I attempt to add the JRE directory (C:\Program Files\AdoptOpenJDK\jre-11.0.4.11-hotspot) or its parent, OpenOffice refuses to accept that it is indeed a JRE. Do I need to rename the JRE directory and install it under the JDK, or is there some other incantation that needs to be performed? (The JRE ships separately from the JDK, so the JDK doesn't have a JRE directory of its own.)
Open Office 4.1.7 on Windows 10 Home
cdburke
 
Posts: 2
Joined: Sat Dec 07, 2019 9:58 pm

Re: [Solved] Unable to get OpenOffice to recognize AdoptOpen

Postby cdburke » Sat Dec 07, 2019 10:10 pm

Answering my own post before it even passes moderation: It has to be the x86 (32-bit) JRE. A 64-bit JRE will not work. Once I installed the 32-bit version I could proceed and the JRE was recognized.
Open Office 4.1.7 on Windows 10 Home
cdburke
 
Posts: 2
Joined: Sat Dec 07, 2019 9:58 pm


Return to Install, Setup and Troubleshooting

Who is online

Users browsing this forum: No registered users and 5 guests