[Solved] Does not find JRE

Discuss the database features

[Solved] Does not find JRE

Postby bobfleming » Tue May 19, 2015 8:56 pm

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.
Last edited by thomasjk on Thu Jun 04, 2015 5:31 am, edited 1 time in total.
Reason: Mark thread [Solved] and add green checkmark
OpenOffice.org 3.4.1 on Windows 7
bobfleming
 
Posts: 8
Joined: Fri Mar 29, 2013 10:24 pm

Re: Does not find JRE

Postby Villeroy » Tue May 19, 2015 9:29 pm

Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04, OpenOffice 4.x & LibreOffice 6.x
User avatar
Villeroy
Volunteer
 
Posts: 25834
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Does not find JRE

Postby bobfleming » Mon Jun 01, 2015 10:02 pm

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
OpenOffice.org 3.4.1 on Windows 7
bobfleming
 
Posts: 8
Joined: Fri Mar 29, 2013 10:24 pm

Re: Does not find JRE

Postby Greengiant224 » Tue Jun 02, 2015 12:57 pm

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

Linux 2.6.38, KDE 4.9.2, LibreOffice 3.5.* (Java 1.6.0_35) utilising HSQL 1.8.10 & 2.3.*, MySQL, PostgreSQL, SQLite
+ Blood, Sweat and Tears (Application, Determination and Perseverance)
User avatar
Greengiant224
 
Posts: 276
Joined: Wed Jun 09, 2010 3:50 pm
Location: All Over The World

Re: Does not find JRE

Postby bobfleming » Wed Jun 03, 2015 11:48 pm

RESOLVED! Thanks to Greengiant224 that opened by eyes to the radio button I hadn't noticed before!
OpenOffice.org 3.4.1 on Windows 7
bobfleming
 
Posts: 8
Joined: Fri Mar 29, 2013 10:24 pm

Re: [Solved] Does not find JRE

Postby shanen » Tue Oct 27, 2015 12:32 am

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.
OpenOffice 4.x on Windows / MacOS / Ubuntu
shanen
 
Posts: 3
Joined: Thu May 07, 2015 2:25 am

Re: [Solved] Does not find JRE

Postby NiallMartin » Sun Nov 15, 2015 8:27 pm

This solved my problem too.
Niall Martin
OpenOffice 4.1.3
Win 10
NiallMartin
 
Posts: 12
Joined: Sun Nov 15, 2015 12:12 am

Re: [Solved] Does not find JRE

Postby vacppp » Thu Jun 29, 2017 2:28 am

Please tell me what is this radio button
Open office 4.4.1 on window 7
vacppp
 
Posts: 1
Joined: Thu Jun 29, 2017 2:05 am

Re: [Solved] Does not find JRE

Postby thomasjk » Thu Jun 29, 2017 4:44 am

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.
Tom K.
Windows 10 Home version 1803 17134.165
LibreOffice 5.4.7.2
thomasjk
Volunteer
 
Posts: 4373
Joined: Tue Dec 25, 2007 4:52 pm
Location: North Carolina

Re: [Solved] Does not find JRE

Postby guran_two » Fri Oct 26, 2018 5:08 pm

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:
Open Office 4.1.5 on Windows 10 64 bit
guran_two
 
Posts: 1
Joined: Fri Oct 26, 2018 5:02 pm

Re: [Solved] Does not find JRE

Postby jwlewis » Sun Nov 04, 2018 7:54 am

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.
OpenOffice 4.1.5 on Windows 7 64bit
jwlewis
 
Posts: 1
Joined: Sun Nov 04, 2018 7:27 am

Re: [Solved] Does not find JRE

Postby Villeroy » Tue Nov 06, 2018 7:04 pm

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.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04, OpenOffice 4.x & LibreOffice 6.x
User avatar
Villeroy
Volunteer
 
Posts: 25834
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany


Return to Base

Who is online

Users browsing this forum: No registered users and 7 guests