Page 1 of 1

javaldx: Could not find a Java Runtime Environment!

Posted: Sun Dec 04, 2022 10:43 pm
by lanzcc
Hello,
Where would it be most appropriate to post this question? N.B. I have read all the posts about this error, and unfortunately they are not sufficiently complete for me to use.
Fresh install of OpenOffice 4.1.1 on Ubuntu 14.04. Get the message "javaldx: Could not find a Java Runtime Environment!" even though I use java every day.
Thanks!

Re: where to post? javaldx: Could not find a Java Runtime Environment!

Posted: Mon Dec 05, 2022 12:48 am
by John_Ha
AOO needs 32-bit Java. See Troubleshooting Open/LibreOffice and Java
 Edit: Sorry.
That applies to Windows - I don't know about Ubuntu. 

Re: Where to post? javaldx: Could not find a Java Runtime Environment!

Posted: Mon Dec 05, 2022 3:12 pm
by Hagar Delest
You still use an 8 years old OS?
Even at that time, LibreOffice may have been the default productivity suite bundled with Ubuntu.

In the Tools > Options > AOO > Advanced and type /usr/lib/jvm in the field after clicking the Add button, what do you see?
Note: do you really need JRE? It is needed for very specific features IIRC.

Re: Where to post? javaldx: Could not find a Java Runtime Environment!

Posted: Mon Dec 05, 2022 3:23 pm
by lanzcc
Hello,
(1)I do sufficiently "deep" programming that upgrading the OS inevitably causes extreme difficulties. And also, technology has progressed far enough that I can't find sufficient instructions for the upgrade - for example, I never succeeded in creating a bootable usb drive from which to install.
(2) Yes, I have been using LibreOffice for years, and it causes system crashes about once a week. I finally got tired of that and decided to try OpenOffice, but have been prevented (admittedly by my own ignorance) from successfully installing it.
(3) What "Tools" menu are you talking about [Tools > Options > AOO > Advanced ]? I can't open AOO.
(4) I probably don't need the jdk - I use no advanced features of word processors. Do you know how to tell the installation procedure to ignore the absence of the jdk?
Thanks!

Re: Where to post? javaldx: Could not find a Java Runtime Environment!

Posted: Mon Dec 05, 2022 3:36 pm
by Hagar Delest
See if that helps: [Tutorial] Installing Apache OpenOffice on GNU/Linux.
Your first message is not clear and does not tell that you could not even open AOO.
It should not be a showstopper however.

Note: you may run gdebi instead of dpkg because a newer version may not do well with your old system.
Upgrading an old system may pose some risks now. The best bet IMHO being to make a dual boot to install a newer version on a separate partition and create one or more additional partitions for your data. Then you can test the new ubuntu flavor and either stick to it or go back to the former one.
You need the usb-disk-creator package to create a bootable USB key. But partitioning is delicate, make sure you've all your data backuped on an external drive if you go to it.

Re: Where to post? javaldx: Could not find a Java Runtime Environment!

Posted: Mon Dec 05, 2022 4:01 pm
by Villeroy
~/.openoffice/4/user/config/javasettings_Linux_X86_64.xml keeps the Java settings.

I doubt that OpenOffice is more stable than LibreOffice.

Re: Where to post? javaldx: Could not find a Java Runtime Environment!

Posted: Wed Dec 07, 2022 1:31 pm
by esperantisto
Villeroy wrote: Mon Dec 05, 2022 4:01 pm I doubt that OpenOffice is more stable than LibreOffice.
Don’t. AOO is really more stable, especially on large files.

Re: javaldx: Could not find a Java Runtime Environment!

Posted: Wed Dec 07, 2022 8:06 pm
by lanzcc
Hello, does anyone know where documentation for the file ".openoff/4/user/config/javasettings_Linuz_86_64.xml" can be found? Documentation of any openoffice java settings config file would probably do. Finding this by googling is searching herein has been unproductive - what's found there is incomplete from the point of view of 'complete' "Documentation" of that config file.

Re: javaldx: Could not find a Java Runtime Environment!

Posted: Wed Dec 07, 2022 8:24 pm
by Hagar Delest
See if that helps: https://help.libreoffice.org/7.1/en-US/ ... PAR=SHARED

On my xubuntu machine I don't have any JRE listed but the javasettings_Linux_X86_64.xml file in .../4/user/config says:
<location>file:///usr/lib/jvm/java-11-openjdk-amd64</location>

Which is rather strange since there is nothing in the relevant dialog. Perhaps it kept some path when I tried to add a JRE.

Re: javaldx: Could not find a Java Runtime Environment!

Posted: Wed Dec 07, 2022 8:41 pm
by lanzcc
Ha ha this is typical of my experience! My javasettings file looks completely different and I can't tell what to do with the "jrelocations" line (just because here's no path-like string that I could just replace):

<?xml version="1.0" encoding="UTF-8"?>
<!--This is a generated file. Do not alter this file!-->
<java xmlns="http://openoffice.org/2004/java/framework/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<enabled xsi:nil="true"></enabled>
<userClassPath xsi:nil="true"></userClassPath>
<vmParameters xsi:nil="true"></vmParameters>
<jreLocations xsi:nil="true"></jreLocations>
<javaInfo xsi:nil="true"></javaInfo>
</java>

Re: javaldx: Could not find a Java Runtime Environment!

Posted: Sun Dec 11, 2022 5:11 pm
by Villeroy
When I disable Java:

Code: Select all

<enabled xsi:nil="false">false</enabled>
When I enable Java:

Code: Select all

<enabled xsi:nil="false">true</enabled>