Ask Your Question
1

Base says my Java Runtime Environment is defective.

asked 2012-05-27 20:02:12 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

updated 2013-02-03 18:38:01 +0200

qubit gravatar image qubit flag of United States
5693 3 48 41

I keep getting error messages regarding my java runtime environment. I've tried re-installing both java and libre office, but there is no change. The first error message reads: "Openoffice.org requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - OpenOffice.org - Java." Then a second error message pops up, "The connection to the data source "New Database" could not be established. No Java installation could be found. Please check your installation." When I go to Tools - Options - Java, there is my java - it says, "Oracle Corporation, version 1.7.0_04". Is there a different one?

Thanks! :)

delete close flag offensive retag edit

4 Answers

Sort by » oldest newest most voted
0

answered 2012-08-19 08:08:49 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

updated 2012-08-19 08:16:01 +0200

vsfoote gravatar image vsfoote
314 1 2 10

Rolling back to 1.6 build JRE is a work around, but JRE 1.7 builds are fully functional.

Must have a 32bit Java Runtime Environment, and correct environment/path to the JRE bin. Oracle JRE installers also place copies of JRE into the C:\Windows\sytem32 directory--which can cause a 64-bit JRE to be used rather than a 32-bit JRE.

If you have this problem, check the settings listed in javasettings_Windows_x86.xml in your per-user profile, e.g. C:\Users\<username>\AppData\Roaming\LibreOffice\3\user\config.

The .xml configurations must match the system JRE configuration. Problem for folks has been an .xml that lists 1.6 JRE while they have upgraded to a 1.7 JRE build.

Solution is to set PATH and JAVA_HOME variables, and delete the javasettings_Windows_x86.xml allowing it to rebuild with defaults resolved from system PATH variable. Removing the JRE copies from C:\Windows\system32 helps assure correct JRE as established by PATH is used.

link delete flag offensive edit
1

answered 2012-06-21 20:30:54 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

updated 2012-06-21 20:30:54 +0200

hrothgar gravatar image hrothgar flag of United Kingdom
13 1 4

I found this problem occurs in Base in both OpenOffice and LibreOffice, which points to a Java problem. Uninstall 1.7.0 and install 1.6.0_33 . It worked for me!

link delete flag offensive edit

Comments

Yes, and it worked for me too. Thanks.

DonLow ( 2012-08-14 03:21:53 +0200 )edit
0

answered 2012-08-19 11:16:24 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

updated 2012-08-19 11:16:24 +0200

carlob gravatar image carlob
1

I have seemingly the same problem on Os X 10.5, my JRE is 10.6_26 (Java HotSpot™ 64-Bit Server VM - build 20.1-b02-384, mixed mode), Base says I don't have any JVM, I tried getting rid of preferences, selecting the Java VM in preferences, restarting LO to no avail. Is there a workaround? Will it be fixed in 3.6.1?

BTW, I hoped the wizards for forms and reports had been fixed. Well, they didn't…

link delete flag offensive edit
0

answered 2012-08-23 17:43:42 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

updated 2012-08-23 17:43:42 +0200

hrothgar gravatar image hrothgar flag of United Kingdom
13 1 4

Well, vsfoote's answer is interesting, but also a bit of a faff! One shouldn't have to go through all that rigmarole. Wouldn't it be nice if JRE installed correctly when updating?

link delete flag offensive edit

Comments

Yes, but it doesn't. So either correctly configure it yourself, or complain to Oracle to fix the JRE installers to establish an entry in PATH variable.

vsfoote ( 2012-08-23 18:16:50 +0200 )edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-05-27 20:02:12 +0200

Seen: 2,550 times

Last updated: Aug 23 '12