Page 1 of 1

[Solved] Does not find JRE

PostPosted: Tue May 19, 2015 8:56 pm
by bobfleming
When attempting to connect to a database, I get the following error:
"OpenOffice requires a Java runtime environment (JRE) to perform this task. The selectred
JRE is defective. Please select another version or install a new JRE and select it under
Tools - Options - OpenOffice - Java."

When I go to Tools - Options - OpenOffice - Java, there is a brief pause, then it
displays the following "Oracle Corporation 1.8.0.45"

I clicked on Add, but when I again attempt to connect to the database, I still get the
same error.

I have Windows 7, 64-bit version. I was initially using OpenOffice.org 4.1.0 without
problems. Then about a week ago I received a message advising to update Java. I
downloaded the 32-bit JRE and still had the same problem. I went to Tools - Options -
OpenOffice - Java and it automatically selected the new JRE. I clicked the "Add" button
and the problem was not resolved. I then downloaded the 64-bit JRE, went to Tools -
Options - OpenOffice - Java, and this time browsed to Program
Files/java/jre1.8.0_45/bin/java.exe. I am assuming that Program Files contains the 64-bit
programs and Program Files (x86) contains the 32-bit programs -- am I correct about this?
After double clicking on the jre1.8.0_45 folder and clicking "Add", I still had not
resolved the problem. I still get the "OpenOffice requires a Java runtime environment..."
error.

So, what do I do now???

Bob Fleming
Seattle, U.S.A.

Re: Does not find JRE

PostPosted: Tue May 19, 2015 9:29 pm
by Villeroy

Re: Does not find JRE

PostPosted: Mon Jun 01, 2015 10:02 pm
by bobfleming
I tried the link posted above (https://forum.openoffice.org/en/forum/v ... 74&t=69896), and I think I correctly followed the instructions, but the problem was not resolved.

The advice to avoid using wizards is good advice for the future, but the database I am trying to access was already created using the wizard. It worked fine until I updated to OpenOffice 4.1.1.

My gut feeling is that the instructions on that link were for older versions and that there is some sort of incompatibility issue between the latest versions of OpenOffice and JRE.

When attempting to the database, the following alert appears:

"OpenOffice requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or intall a new JRE and select it under Tools - Options - Java."

Upon closing that alert, this one pops up:


"The connections to the data source "Bob Personal" could not be established.
No Java installation could be found. Please check your installation.

Clicking on the "More" button reveals this:

"SQL Status HY000"


The version of OpenOffice is 4.1.1
AOO411m6(Build:9775) - Rev. 1617669
2014-08-13 09:06:54 (Mi, 13 Aug 2014)


The operating system is Windows 7 Professional, Service Pack 1

the computer was custom built, with Intel(R) Core(TM) Quad CPU Q8300 @ 2.50 GHz
Installed memory (RAM): 4.00 GB
64-bit operating system

Installed JREs:
jre-windows-i586.exe (probably 64bit because it is in Program Files)
In Program Files (x86) I found:
jre1.7.0_79
jre1.8.0_45
java.exe in the Jre7 folder
I also found an empty folder for jre6 (I will delete that folder)

In OpenOffice, Tools - Options - Java, after a few seconds, self populates with:
Oracle Corporation 1.8.0_45 and
Oracle Corporation 1.7.0_79

Re: Does not find JRE

PostPosted: Tue Jun 02, 2015 12:57 pm
by Greengiant224
bobfleming:
In OpenOffice, Tools - Options - Java, after a few seconds, self populates with:
Oracle Corporation 1.8.0_45 and
Oracle Corporation 1.7.0_79


Have you selected the radio button?
Java will not be found without selecting this.

AOO/LO is a 32 bit program and therefore needs a 32bit Java installation, even on a 64 bit machine.
Your version of AOO (v3.4.1) will only work with Java v 1.7. This is because of incompatibilities
with the VC++ runtime libraries.
Although there is a work around, it is not for the faint hearted.

Does this help?

Greengiant224

Re: Does not find JRE

PostPosted: Wed Jun 03, 2015 11:48 pm
by bobfleming
RESOLVED! Thanks to Greengiant224 that opened by eyes to the radio button I hadn't noticed before!

Re: [Solved] Does not find JRE

PostPosted: Tue Oct 27, 2015 12:32 am
by shanen
Thanks for calling this to my attention. I had been wrestling with the same problem for months, and had never realized that was a radio button.

Minor item, but obvious fix is to select the button if there is only one. Or perhaps they could change it to eliminate the upper checkbox to use Java? Instead, they have a default option in the selection panel of "None, Java not used." If you see that option is selected and there is one or more unselected JREs below it, then it will be pretty clear what to do.

Re: [Solved] Does not find JRE

PostPosted: Sun Nov 15, 2015 8:27 pm
by NiallMartin
This solved my problem too.

Re: [Solved] Does not find JRE

PostPosted: Thu Jun 29, 2017 2:28 am
by vacppp
Please tell me what is this radio button

Re: [Solved] Does not find JRE

PostPosted: Thu Jun 29, 2017 4:44 am
by thomasjk
vacppp wrote:Please tell me what is this radio button

Use Tools--->Options--->Libreoffice--->Advanced. I'm
Radiobutton.PNG
using Libreoffice AOO may be slightly different.

Re: [Solved] Does not find JRE

PostPosted: Fri Oct 26, 2018 5:08 pm
by guran_two
If you run a 64 bit system with Java installed, Open Office will still not find or accept your Java version. You need to install Java 32 bit version also on your 64 bit system. When this is done Open Office will accept your Java installation.
The reason is obviously based on OO being 32 bit and not 64 bit. Ergo. :knock:

Re: [Solved] Does not find JRE

PostPosted: Sun Nov 04, 2018 7:54 am
by jwlewis
Just ran into this issue myself
Had 4.1.3 installed on my windows 7, 64 bit with jre-8u192-windows-64 installed and got the NO JRE message.

Updated AOO to 4.1.5 and HAD to install jre-8u192-windows-i586. I had to change the install folder to c:/program files/java/jre1.8.0_192_32bit since I already had a c:/program files/java/jre1.8.0_192 folder for my 64 bit version.

Sure wish AOO would put out a 64 bit version so we wouldn't have to do install 2 versions of the JRE.

Re: [Solved] Does not find JRE

PostPosted: Tue Nov 06, 2018 7:04 pm
by Villeroy
Compiling the source code for platforms other than Windows is by far easier, hence we always had 64 bit versions for other platforms. The LibreOffice team released a Windows 64 version in August 2015. OpenOffice is almost dead. The tiny team is working on version 4.2 for Win64 but nobody knows when or if this version will ever be released.

Re: [Solved] Does not find JRE

PostPosted: Tue Dec 04, 2018 8:52 pm
by gilbertl
Thanks to Greengiant224 -- I installed the 32 bit version of JRE on my 64 bit Windows 10 x64 machine, and now it (Open Office help) works. (It did not work with the 64 bit version of JRE.)