Ask Your Question
0

Libreoffice says that my Java runtime environment is defective. I have the latest edition.

asked 2012-09-18 00:56:13 +0200

this post is marked as community wiki

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

updated 2012-10-17 11:42:23 +0200

manj_k gravatar image manj_k
5740 4 33 48

Java Runtime Enviroment

delete close flag offensive retag edit

4 Answers

Sort by » oldest newest most voted
0

answered 2012-09-18 07:11:12 +0200

Timon gravatar image Timon
1506 5 13

updated 2012-09-18 07:12:26 +0200

What OS, version of LibO? If you have Microsoft 64-bit OS then install the latest Java 6 32-bit and all would be fine. It is known problem with some versions of LibO see more http://ask.libreoffice.org/question/5712/extension-installation-could-not-create-java/

link delete flag offensive edit
1

answered 2013-05-14 17:03:17 +0200

Mister Keith gravatar image Mister Keith
11 1 1

The earlier answer (Oct 7 '12: deleting the configuration file) fixed it for me and allowed me to use JRE 1.7. But I'm not allowed vote for this answer because I don't have enough points!

link delete flag offensive edit
1

answered 2012-10-06 21:50:12 +0200

this post is marked as community wiki

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

updated 2012-10-06 21:50:12 +0200

elseedy gravatar image elseedy
1 1 1 3

Many thanks!

link delete flag offensive edit
0

answered 2012-10-07 17:20:18 +0200

vsfoote gravatar image vsfoote
314 1 2 10

updated 2012-10-07 17:26:25 +0200

Most often this has been an issue for Windows OS users.

Rolling back to the latest JRE 1.6 build is one approach when you receive the "Java runtime is defective error" following an upgrade to JRE 1.7.

However, the cause is a LibreOffice configuration issue, where old JRE 1.6 details have not been replaced with details for use of JRE 1.7

If you'd like to move to a JRE 1.7 build, you need to first remove the LibreOffice Java Runtime configuration file and allow it to rebuild following a 32-bit JRE installation and a new launch of LibreOffice.

The configuration file javasettings_Windows_x86.xml is located in the %APPDATA%\LibreOOffice\3\user\config folder.

Enter "echo %APPDATA%" at a command window prompt to display the full path to navigate.

Before deletion, you can verify this was the issue by opening the .XML with a text editor--if you see references to a jre6 path, confirms that was the problem.

If working on a 64-bit system, you may need to establish use of the specific 32-bit JRE with by specifying a JAVA_HOME variable or making an entry in the system PATH, or both.

LibreOffice calls (all 32-bit on Windows OS) incorrectly made to the system registered 64-bit version of the JRE will fail.

link delete flag offensive 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

subscribe to rss feed

Stats

Asked: 2012-09-18 00:56:13 +0200

Seen: 1,544 times

Last updated: May 14