neooffice / NeoOffice

Other
34 stars 5 forks source link

"Could not create Java implementation loader" #15

Closed ondohotola closed 1 year ago

ondohotola commented 1 year ago

on Ventura M1 I installed Oracle JDK 17 ARM 64 as directed and then NeoOffice 2022.5 Professional Edition.

When trying to install (or rather to enable the writer2latex.oxt I get the above error.

When I go to Options -> Advanced Java is enabled but no JRE is found.

On my Monterey Intel it worked with the Oracle JDK 8.

I have reinstalled, rebooted but still get this error.

Is there a way of manually configuring the path to the JRE?

plubius commented 1 year ago

Can you post the output of the following Terminal command?:

/usr/libexec/java_home -V

plubius commented 1 year ago

One other thing to try: if you have Oracle JDK 19 installed, open the following file:

sudo /Applications/NeoOffice.app/Contents/Resources/ure/share/misc/javavendors.xml

...and replace the line with the tag with the following line:

19.999.999

...and restart NeoOffice. The above should make Oracle JDK 19 findable by NeoOffice.

ondohotola commented 1 year ago

sudo mate /Applications/NeoOffice.app/Contents/Resources/ure/share/misc/javavendors.xml

does the trick :-)-O

thank you very much :-)-O

plubius commented 1 year ago

I am leaving a reminder for myself: enable JDK 19 in the next patch or release.

Oracle's website appears to encourage downloading JDK 19 so, instead of restricting the JDK version, maybe it is better to remove the so that users can use the latest JDK version.

ondohotola commented 1 year ago

Thank you very much

el

On 08/12/2022 15:53, PL wrote:

I am leaving a reminder for myself: enable JDK 19 in the next patch or release.

Oracle's website appears to encourage downloading JDK 19 so, instead of restricting the JDK version, maybe it is better to remove the so that users can use the latest JDK version. [...]

-- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist @.** / | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply

plubius commented 1 year ago

I have posted a patch that removes the line in the javavendors.xml file for anyone who doesn't want to edit that file directly. I will also include this change in the next NeoOffice release:

ondohotola commented 1 year ago

Thank you.

el

On 09/12/2022 17:04, PL wrote:

I have posted a patch that removes the line in the javavendors.xml file for anyone who doesn't want to edit that file directly. I will also include this change in the next NeoOffice release:[...]

-- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist @.** / | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply