OpenOffice can not find JRE (sun 1.6)

Bug #96875 reported by Gregg
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openoffice.org (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Running on Feisty :
2.6.20-13-generic #2 SMP Sun Mar 25 00:21:25 UTC 2007 i686 GNU/Linux

Java JDK sun 1.6.0 installed :

$update-alternatives --list java
/usr/lib/jvm/java-6-sun/jre/bin/java

Java is working fine in Firefox : http://www.java.com/fr/download/help/testvm.xml

When I tried configure in OpenOffice the JRE (tools>Options>Openoffice.org>java) with the JRE path I find in the "Sun java Plugin control Panel" : /usr/lib/jvm/java-6-sun/jre/bin/java

It does not want to add it, and say it does not contain a JRE.

I tried to do this : $sudo update-alternatives --config java
and it tell me :

"There is only one Software providing Java (/usr/lib/jvm/java-6-sun/jre/bin/java).
Nothing to Configure"

Revision history for this message
Matthias Klose (doko) wrote :

works for me; sun-java6 is automatically detected by OOo without anything to configure.

Changed in openoffice.org:
status: Unconfirmed → Needs Info
Revision history for this message
hda (hda) wrote :

same her on Gutsy. When calling Tools->Options->Java in OpenOffice an error is reported to STDOUT:

[Java framework] Invalid value for bootstrap variable: UNO_JAVA_JFW_VENDOR_SETTINGS

Revision history for this message
jontxo (reincigarcia) wrote :

I also have this problem runing gutsy. When I run openoffice from the command line I get the same error trying to select a jre in Tools->Options->Java. Googling a bit I have discovered that the error is caused by the absence of the file javavendors.xml. I have tried to use the file that comes with the 2.2 release of openoffice but I get another error.
 [Java framework] Error in function findPlugin (fwkutil.cxx).

Revision history for this message
darren (darrenm) wrote :

Another one with this problem. In Gutsy OO can't find the JRE. I have various versions installed but it won't allow me to select any of them.

Revision history for this message
Frank (frank-schaeffer) wrote :

Can confirm too.
On Gutsy 64bit I get the error message below if I open a terminal and type "openoffice" select options->java->add->"try to selecting /usr/lib/jvm/java-6-sun/jvm/bin/java"

[Java framework] Error in function findPlugin (fwkutil.cxx)
The java-file in ...... /jvm/bin/ is already there but cannot seen at the file manager within openoffice option-java-add-menu

@jontxo
I could find the javavendors.xml file at /usr/lib/openoffice/share/config/javavendors.xml. It seems to be ok. I tried to change the min max selection for the sun item and try again to select java within openoffice but nothing changed.

Revision history for this message
Frank (frank-schaeffer) wrote :

Latest java update doesn't change anything. OpenOffice doesn't recognize sun's java 6. Error message is the same as described above

Revision history for this message
yon.cuadrado@gmail.com (yon-cuadrado) wrote :

For me it's solved with the last version of openoffice.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openoffice.org (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
Russel Winder (russel) wrote :

I have just upgraded to Hardy and am trying to use OpenOffice.org 2.4 to write fodt or DocBook/XML files. This failes with the error message:

[Java framework]sunjavaplugin.so could not load Java runtime library:
file:///usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so.

However the file is patently there:

|> ll /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/client/libjvm.so
-rw-r--r-- 1 root root 5355014 2008-03-25 09:01 /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/client/libjvm.so

When I go to the OpenOffice.org options menu and look at the java entry after a while the Sun Microsystems inc. entry appears but not selected. If I select it and click OK then it appears still not selected. It always appears after a while deselected.

It seems then that there is no way for me to bind this instance of OpenOffice.org to the JVM, which appears to make OpenOffice.org unusable for anything except odt files.

Revision history for this message
Russel Winder (russel) wrote :

Note though the subte error o1.6.0.03 vs 1.6.0.06, it seems OpenOffice.org is hardwired to look for the Gutsy version of the JVM whereas Hardy has a more recent version of the JVM.

Revision history for this message
Valerii Hiora (valerii-hiora) wrote :
Revision history for this message
Russel Winder (russel) wrote :

Don't think so, my systems all have openoffice.org-java-common installed.

Revision history for this message
Wayne Merry (waynemerry) wrote :

I also noticed this subtle difference between x.03 and x.06, and this too was preventing macros running in open office calc 2.4 under Ubuntu 8.04. I created a link in /usr/lib/jvm from java-6-sun-1.6.0.03 to java-6-sun-1.6.0.06 using nautilus as root, and wella, everything works. If open office is fixed to look in the wrong places - this would help. Why can't it use the general java-6-sun link?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.