openoffice.org-writer lacks gij dependencies, no java runtime on CD

Bug #218692 reported by Matthias Klose
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openoffice.org (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: openoffice.org

openoffice.org-writer lacks a *dependency* on a java-runtime, resulting in no jvm on the CD.

- openoffice.org-writer should depend on one, instead of recommending one.
- this should be gij, not java-gcj-compat (the latter adding 20MB on disk space)

plus, after installing gij, java-gcj-compat, or openjdk-6-jre doesn't recognize a java runtime at all.

Tags: iso-testing
Matthias Klose (doko)
Changed in openoffice.org:
importance: Undecided → High
milestone: none → ubuntu-8.04
Revision history for this message
Steve Langasek (vorlon) wrote :

Can confirm the problem with the jvm not being recognized. Here's the console output on my amd64 install when trying to click on a wizard:

 [Java framework]sunjavaplugin.so could not load Java runtime library:
file:///usr/lib/../lib64/gcj-4.1/libjvm.so.

I have no idea why it's looking for gcj-4.1 specifically. I have gcj-4.2-81 on this system, via libgcj8-1.

Changed in openoffice.org:
status: New → Confirmed
Revision history for this message
Matthias Klose (doko) wrote : Re: [Bug 218692] Re: openoffice.org-writer lacks gij dependencies, no java runtime on CD

Steve Langasek schrieb:
> Can confirm the problem with the jvm not being recognized. Here's the
> console output on my amd64 install when trying to click on a wizard:
>
> [Java framework]sunjavaplugin.so could not load Java runtime library:
> file:///usr/lib/../lib64/gcj-4.1/libjvm.so.
>
> I have no idea why it's looking for gcj-4.1 specifically. I have
> gcj-4.2-81 on this system, via libgcj8-1.

It tries all it can find. is openoffice.org-java-common installed?

Revision history for this message
Jerzy Luszawski (dr-agon) wrote :

I confirm that openoffice.org-java-common was not installed despite properly updated system. After installing it manually my java was recognized and OO works fine.

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 218692] Re: openoffice.org-writer lacks gij dependencies, no java runtime on CD

On Thu, Apr 17, 2008 at 07:57:35PM -0000, Matthias Klose wrote:
> Steve Langasek schrieb:
> > Can confirm the problem with the jvm not being recognized. Here's the
> > console output on my amd64 install when trying to click on a wizard:
> >
> > [Java framework]sunjavaplugin.so could not load Java runtime library:
> > file:///usr/lib/../lib64/gcj-4.1/libjvm.so.
> >
> > I have no idea why it's looking for gcj-4.1 specifically. I have
> > gcj-4.2-81 on this system, via libgcj8-1.
>
> It tries all it can find. is openoffice.org-java-common installed?

Yes. But I get this error output on the console, and a "JRE is Defective"
dialog in the app.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
<email address hidden> <email address hidden>

Revision history for this message
jiu (jacques-charroy) wrote :

I also get the message that the jre is faulty at startup of openoffice, although I have sun-java-jre 1.5 and 1.6 installed. When I go to the options, both jres are recognized, but selecting one doesn't save the setting. Next time I start openoffice, I get the same message 'faulty jre' again. I don't have gcj installed. hardy with all updates, openoffice 2.4.
I'd appreciate any help.

Matt Zimmerman (mdz)
Changed in openoffice.org:
status: Confirmed → Triaged
assignee: nobody → ccheney
Revision history for this message
Chris Cheney (ccheney) wrote :

ack

Revision history for this message
Matt Zimmerman (mdz) wrote :

Apr 18 13:56:02 <mdz> calc: please ack bug 218692, which is milestoned for 8.04
Apr 18 13:58:58 * calc looking
Apr 18 13:59:11 <calc> mdz: will be uploading a fix for that in the next day or so
Apr 18 13:59:23 <mdz> calc: thanks, please update the bug accordingly
Apr 18 13:59:34 <calc> just finished the security updates earlier this morning
Apr 18 14:00:38 <mdz> calc: when did this get introduced? was it part of the openjdk stuff?
Apr 18 14:02:05 <calc> mdz: i'm not sure yet i haven't had a chance to go back through the bzr repo to see if i dropped something or if it was just a function of not having openoffice.org meta-package installed
Apr 18 14:02:28 <calc> and we can't install openoffice.org-java-common on the cd because we have no space
Apr 18 14:02:54 <calc> but yes OOo in general does need java to fully function, so its a bit of a problem
Apr 18 14:03:29 <calc> i can try just adding the gij depends and see if that will work but not really sure
Apr 18 14:04:58 <calc> its appears it won't work when openoffice.org-java-common is not installed, but slangasek seems to have the problem even when it is installed, so i'm not sure what is happening on his box
Apr 18 14:05:09 <calc> wrt this bug and others i have seen about the same issue
Apr 18 14:08:14 <calc> we could potentially have enough room for OOo if recompressed the other (non OOo) packages that can benefit from it, but it probably still wouldn't be enough space on the desktop cd since it doesn't use lzma for the squashfs

Revision history for this message
Chris Cheney (ccheney) wrote :

What we really need is for openoffice.org to be reseeded to fix this and many other bug reports, but that seems unlikely. gij did acidentally get dropped from the

Recommends: "gij |" java-gcj-compat | openjdk-6-jre | sun-java5-jre | sun-java6-jre | java2-runtime

But it was never a Depends for openoffice.org-writer. What used to happen though was since openoffice.org meta-package was seeded we got openoffice.org-java-common and openoffice.org-base installed as well which did depend on gij (which happens to also be missing gij at the moment as well due to shared replacement variable).

Chris

Revision history for this message
Chris Cheney (ccheney) wrote :

Matthias,

Should openoffice.org-writer really depend on java anyway, afaict that probably should be moved into openoffice.org-core since the different apps are really just views into the same framework app. Most things other than base don't use java but being able to setup java properly which is what this bug seems to be primarily about is needed by all of the apps not just writer.

Chris

Revision history for this message
Chris Cheney (ccheney) wrote :

Oh I don't think I made this clear, I definitely will be fixing the gij missing in the replacement variable, but to solve the other half of the problem I think I should move the dependency into openoffice.org-core from openoffice.org-base and the Recommends for openoffice.org-writer, etc.

Chris

Changed in openoffice.org:
status: Triaged → In Progress
Revision history for this message
Matthias Klose (doko) wrote :

proposing for hardy:

- let openoffice.org-java-common depend on "gij | java-gcj-compat | ..." (same thing as the recommends in writer)
- document in the release notes that openoffice.org-java-common is necessary to get the java stuff in OOo
  working (installation of openoffice.org is already mentioned in the release notes).

Changed in openoffice.org:
status: In Progress → Triaged
Revision history for this message
Steve Langasek (vorlon) wrote :

On this system where I get the Java error message, the openoffice.org metapackage is already installed. So I don't see that re-seeding it will fix anything.

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

to the users who don't have working wizards after installation of openoffice.org-java-common:

 - quit all OOo apps
 - move / rename you .openoffice.org2 folder in your home directory
 - restart and check the wizards
 - remove the newly created .openoffice.org2 folder
 - move back the old folder.

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

proposing for hardy as well:

add another string to the message box which appears for a non-working java. Append (don't replace) a string saying "please install the openoffice.org-java-common package for this functionality".

Revision history for this message
Steve Langasek (vorlon) wrote :

ok, on a hunch I just moved aside my ~/.openoffice.org2 directory, and now Java works. So this looks like an upgrade issue in the same vein as 205322 - i.e., it may only an issue for users whose OOo setup predates Ubuntu.

Revision history for this message
Chris Cheney (ccheney) wrote :

Matthias,

Steve just mentioned on IRC we don't have enough space for even gij on the livefs.

Chris

Revision history for this message
jiu (jacques-charroy) wrote :

Solved for me by deleting the following file: $HOME/.openoffice.org2/user/config/javasettings_Linux_x86.xml
The file gets recreated automatically at next openoffice startup with the proper settings.
All the credit goes to mjuhasz on this thread: http://ubuntuforums.org/showthread.php?t=678751&highlight=openoffice+hardy+java+javasettings_Linux_x86.xml&page=2

Chris Cheney (ccheney)
Changed in openoffice.org:
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openoffice.org - 1:2.4.0-3ubuntu6

---------------
openoffice.org (1:2.4.0-3ubuntu6) hardy; urgency=low

  * ooo-build/patches/src680/ubuntu-openoffice-java-common.diff:
    . Added message to tell user to install openoffice.org-java-common if
      java is non-functional. Closes LP: #218692
  * Changed openoffice.org dependency on openoffice.org-officebean so it
    is not included when java is disabled.
  * Removed dependency on openoffice.orgVER by openoffice.orgVER-l10n-in and
    openoffice.orgVER-l10n-za so they can be installed without OOo.

 -- Chris Cheney <email address hidden> Mon, 21 Apr 2008 20:16:35 -0500

Changed in openoffice.org:
status: Fix Committed → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

we now have a nice message box pointing to install openoffice.org-java-common, but openoffice.org-java-common still doesn't depend on a java runtime (should be "gij | java-gcj-compat | openjdk-6-jre | sun-java6-jre |java2-runtime"

Changed in openoffice.org:
milestone: ubuntu-8.04 → ubuntu-8.04.1
status: Fix Released → Confirmed
Revision history for this message
Chris Cheney (ccheney) wrote :

Matthias,

Hmm, I didn't even notice that before since every time I installed openoffice.org-java-common it pulled in a JRE. Looking more closely at the depends, even though openoffice.org-java-common doesn't depend on a JRE all the packages it depends on do. So a JRE is pulled in any case.

Chris

Revision history for this message
Chris Cheney (ccheney) wrote :

Also all the spots in openoffice.org packages that refer to JRE's now refer to 'gij | java-gcj-compat | openjdk-6-jre | sun-java5-jre | sun-java6-jre | java2-runtime' so the gij isn't left out anymore.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

So, I guess this bug which is about correcting dependencies can be closed?

For those with problems upgrading from pre-hardy who have a working JRE but OOo.org does not recognize it, please take a look at bug 22803.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

missed another 2!

bug 222803 is the one you'd want to look at

Revision history for this message
Steve Langasek (vorlon) wrote :

As noted, openoffice.org-java-common depends on packages such as 'bsh', which do themselves have a dependency on a JRE (in fact, a stricter dependency than the one proposed for -java-common). I'm thereofer unmilestoning this bug and lowering the importance, as the remaining dependency issue has little if any impact.

Changed in openoffice.org:
importance: High → Low
milestone: ubuntu-8.04.1 → none
Chris Cheney (ccheney)
Changed in openoffice.org:
assignee: ccheney → nobody
status: Confirmed → Triaged
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.