Results 1 to 6 of 6

Thread: openoffice stopped working when I installed sun java

  1. #1

    Default openoffice stopped working when I installed sun java

    Yesterday I disinstalled with yast java-1_6_0-openjdk-1.6.0.0_b20.1.9.2-0.2.1-x86_64 and java-1_6_0-openjdk-plugin-1.6.0.0_b20.1.9.2-0.2.1-x86_64 (which were installed as part of our sitewide suse 11.3 installation) and replaced them with java-1_6_0-sun-1.6.0.u22-1.2.1-x86_64 and java-1_6_0-sun-plugin-1.6.0.u22-1.2.1-x86_64 (et al) to solve my problem about bad graphics quality in firefox applets as described and suggested in this other postl.

    That successfully solved my applet problem, but I just discovered it triggered a new problem with openoffice . I tried opening an existing sxc document and got this error message:

    [Java framework]sunjavaplugin.so could not load Java runtime library:
    file:///usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/amd64/server/libjvm.so.


    It looks like that openoffice is still looking into the old openjdk instead of the new sun java. How can I repoint it to use the current java (assuming it really needs it) ?

    Apparently even entering openoffice on a new document gives error in a popup
    OpenOffice org requires a 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 ... but since openoffice does not start I cannot access those options I guess (or is such stuff located elsewhere, and if so where) ?

  2. #2
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: openoffice stopped working when I installed sun java

    What is the output of this command
    Code:
    /usr/sbin/update-alternatives --list java
    ?
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

  3. #3

    Default Re: openoffice stopped working when I installed sun java

    The command returns
    /usr/lib64/jvm/jre-1.5.0-gcj/bin/java
    /usr/lib64/jvm/jre-1.6.0-sun/bin/java


    Note that de facto I do not use explicitly either java installation for compiling and running java apps, but an institute-wide installation on a NFS mounted disk. The JRE is used only by the browser (firefox) and (I just realized) openoffice (would anything else use it ?).

    I realized only yesterday about the existence of /etc/alternatives (originally I thought I could just install the sun java stuff along with the pre-existing one, but for the browser it did not work, because /usr/lib64/browser-plugins/ links javaplugin.so to a file in /etc/alternatives which in turn should be repointed. Since moving Sun's libnpjp2.so into /usr/lib64/browser-plugins/ did not solve my firefox problem, I used yast to disinstall the openjdk, and that repointed things ok.

    I cannot really claim that the openoffice issue is a bug (just an annoyance !) in the installation procedure, since it resides in the user configuration. I did a find for the string openjdk in ~/.ooo3 and found it appears only in .ooo3/user/config/javasettings_Linux_X86_64.xml.
    I did not dare editing such file, but apparently renaming the entire directory .ooo3 and invoking openoffice afresh recreates the entire directory and points the JRE to <location>file:///usr/lib64/jvm/java-1.6.0-sun-1.6.0/jre</location>

    This is enough to let openoffice run. Now I'll run a kdiff3 to see if there is any user customization to recover (but I did not go further repristinating my old one after suse 11.3 installation. Side question: I have the old .ooo-1.1/ directory, but apparently the new openoffice did non inherit it .. and I did not keep trace of my customization (though surely I disabled things as auto spelling check and alike). Is there any way to migrate ?

    Addendum: apparently yast2 did a half-job when disinstalling. /usr/lib64/jvm/java-1.6.0-openjdk-1.6.0 was not deleted, but remained there almost empty. Trying to make Linux resemble Windows ? :-)

  4. #4

    Default Re: openoffice stopped working when I installed sun java

    Hello,
    did You try the following?

    open the o.O.menu,click Extras,click options (Optionen),click Open Office.org,
    look for Java (most probably the last item) and click.
    The window will show the installed JRE's.Add or activate java sun plugin.
    You may deinstall the unused plug-in.
    EK

  5. #5

    Default Re: openoffice stopped working when I installed sun java

    It was not possible to access any menu, because openoffice stopped before with a popup (and replying OK did not work, one had to kill the process).

    The solution is to rename ~/.ooo3 and let a fresh invocation of openoffice recreate it from scratch.

  6. #6
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: openoffice stopped working when I installed sun java

    On 02/01/2011 12:06 PM, luciochiappetti wrote:
    >
    > but remained
    > there -almost- empty. Trying to make Linux resemble Windows ? :-)


    some folks are absolutely certain there is a great need to offer the
    M$ Ship Jumping new Linux user a feel familiar environment..

    so, maybe you are right! ;-)

    actually, there is a switch which _might_ make 'disinstalling' more
    Linux-like....but that option is WELL hidden (to keep the Ship Jumpers
    feeling at home, maybe), try this:

    YaST > Software Management > Options, and add a checkmark to "Cleanup
    when deleting packages" next time you uninstall something..

    _maybe_ that helps, i don't know--i discovered it in a posting around
    here somewhere since i last deleted anything...

    its probably in the YaST documentation, but you know . . .

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD
    [NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
    173.14.28 3D, Athlon 64 3000+]
    "It is far easier to read, understand and follow the instructions than
    to undo the problems caused by not." DD 23 Jan 11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •