[Solved] Can't start OOo 3 on Linux

Issues with installing under all GNU/Linux Distributions
Post Reply
alij
Posts: 1
Joined: Tue Oct 14, 2008 7:03 pm

[Solved] Can't start OOo 3 on Linux

Post by alij »

I downloaded and installed the rpms on my centos box, leaving off the jre, because it conflicted with an rpm that was already installed. When I tried to start up oo, I got:

> /opt/openoffice.org3/program/soffice
libGL warning: 3D driver claims to not support visual 0x4b
[Java framework]sunjavaplugin.so could not load Java runtime library:
file:///usr/lib/gcj-4.1.1/libjvm.so./opt/openoffice.org3/program/soffice: line 134: 3208 Segmentation fault "$sd_prog/$sd_binary" "$@"

I tried installing the jre that came with oo3, with -i, to not overwrite the pre-existing rpm, but am still getting the same error.

I doubt that I really need java. Can I change a config file somewhere to tell oo not to look for it?

Ali
Last edited by Hagar Delest on Sun Dec 20, 2009 5:48 pm, edited 3 times in total.
Reason: tagged [Solved].
OOo 3.0.X on Linux-Other
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Can't start oo3 on linux

Post by acknak »

Did you have OOo installed before?

If so, try renaming the OOo settings directory, or running OOo3 from a different login that hasn't run OOo before. If it will run that way, then you should be able to go into Tools > Options > OO.org > Java and disable it.
AOO4/LO5 • Linux • Fedora 23
Zhuka
Posts: 2
Joined: Tue Oct 21, 2008 10:21 am

Re: Can't start oo3 on linux

Post by Zhuka »

I've got the same error message trying to start OO on Debian:
/opt/openoffice.org3/program$ soffice
[Java framework]sunjavaplugin.so could not load Java runtime library:
file:///usr/lib/../lib/gcj-4.1/libjvm.so./usr/bin/soffice: line 134: 14667 Segmentation fault "$sd_prog/$sd_binary" "$@"

Renaming or removing settings directory takes no effect
OOo 3.0.X on Debian
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Can't start oo3 on linux

Post by acknak »

Well, in that case, I'd try to find an OO.org download that includes the Sun JRE and install that.
AOO4/LO5 • Linux • Fedora 23
Zhuka
Posts: 2
Joined: Tue Oct 21, 2008 10:21 am

Re: Can't start oo3 on linux

Post by Zhuka »

Solved by installing Sun JRE and resetting profile.
But it's strange to use OO only by installing some proprietary software :?
OOo 3.0.X on Debian
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Can't start oo3 on linux

Post by acknak »

OOo doesn't require Java and it seems to work fine with the OpenJDK that Fedora ships.

It looks like you have a version of the gcj Java-work-alike installed, which apparently fails when OOo tries to use it. I have no idea whose problem that is or how to fix it.

If you don't want to install Sun's Java, you can run OOo without Java, or try the OpenJDK. It seemed easiest to just install the JRE that was tested to install and work with OOo.
AOO4/LO5 • Linux • Fedora 23
arsa
Posts: 1
Joined: Tue Feb 17, 2009 5:20 pm

Re: [Solved] Can't start oo3 on linux

Post by arsa »

I had the same problem with my CentOS 5.2 (32-bit), while I was trying to switch from OpenOffice 2.3 (RPM repository) to 3.0.1 (downloaded RPMs).
When launching the application (command: /opt/openoffice.org3/program/soffice.bin) I received an error:
[Java framework]sunjavaplugin.so could not load Java runtime library:
file:///usr/lib/gcj-4.1.1/libjvm.so.Segmentation fault

The resolution was to issue a command: rm -rf ~/.openoffice* <<<--- after that, the application started successfully.
Probably it would be sufficient just to do: rm -rf ~/.openoffice2.0

I'm not sure about the cause to this. I did had some additional plugins and multiple Java installations, but I cannot be sure.
LeroyTennison
Posts: 123
Joined: Sun Dec 20, 2009 8:12 am

Re: [Solved] Can't start oo3 on Linux

Post by LeroyTennison »

The solutions above didn't work for me (on Debian Lenny, installed OpenOffice 3.1.1 by running dpkg -i .deb in the DEBS directory. Didn't know how to change their status to "selected" so that the update script would work). OO2.4 was installed and I hadn't uninstalled it.

What did work was to:

Find libjvm.so (in my case a symbolic link)
Install the latest jre in /usr/lib/jvm (the location of the non-working jre based on locating libjvm.so)
Rename the symbolic link to libjvm.so (mv libjvm.so libjvm.so-original)
Create a new symbolic to libjvm.so in the just-installed jre
(in my case /usr/lib/jvm/jre1.6.0_17/lib/i386/client, 'ln -s -T /usr/lib/jvm/jre1.6.0_17/lib/i386/client/libjvm.so libjvm.so)
Start OO3, work through the intiial menus and get to the point where I could go to Tools->Options then drill into Java and make sure the correct jre was selected.
Exit OO3 and change the above symbolic link back to the original with rm and mv (in case something else needed the other jre).
Restarted OO3 and it worked. For some reason editing ~/..openoffice.org/3/user/config/javasettings_Linux_x86.xml didn't work but it was modified to the same entry after exiting OO3.
Apache OpenOffice 4.1.2 on Linux (Ubuntu 14.04 LTS)
User avatar
TheGurkha
Volunteer
Posts: 6482
Joined: Thu Mar 13, 2008 12:13 pm
Location: North Wales, UK.

Re: [Solved] Can't start oo3 on Linux

Post by TheGurkha »

Thanks for letting us know, it might prove useful to others.
Ubuntu 14.10 Utopic Unicorn, LibreOffice Version: 4.3.3.2
Gurkha Welfare Trust
Post Reply