javaldx: Could not find a Java Runtime Environment!

Issues with installing under all GNU/Linux Distributions
Post Reply
lanzcc
Posts: 10
Joined: Sun Dec 04, 2022 10:32 pm

javaldx: Could not find a Java Runtime Environment!

Post 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!
Last edited by MrProgrammer on Sun Dec 04, 2022 11:56 pm, edited 1 time in total.
OpenOffice 4.1.1 on Ubuntu 14.04
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

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

Post 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. 
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
Hagar Delest
Moderator
Posts: 32657
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

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

Post 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.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
lanzcc
Posts: 10
Joined: Sun Dec 04, 2022 10:32 pm

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

Post 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!
OpenOffice 4.1.1 on Ubuntu 14.04
User avatar
Hagar Delest
Moderator
Posts: 32657
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

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

Post 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.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

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

Post by Villeroy »

~/.openoffice/4/user/config/javasettings_Linux_X86_64.xml keeps the Java settings.

I doubt that OpenOffice is more stable than LibreOffice.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
esperantisto
Volunteer
Posts: 578
Joined: Mon Oct 08, 2007 1:31 am

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

Post 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.
AOO 4.2.0 (of 2015) / LO 7.x / Win 7 / openSUSE Linux Leap 15.4 (64-bit)
lanzcc
Posts: 10
Joined: Sun Dec 04, 2022 10:32 pm

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

Post 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.
OpenOffice 4.1.1 on Ubuntu 14.04
User avatar
Hagar Delest
Moderator
Posts: 32657
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

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

Post 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.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
lanzcc
Posts: 10
Joined: Sun Dec 04, 2022 10:32 pm

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

Post 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>
OpenOffice 4.1.1 on Ubuntu 14.04
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

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

Post 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>
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply