Page 1 of 1

[Solved] New AOO install will not load in Ubuntu 16.04

Posted: Wed Jul 06, 2016 6:48 pm
by jrkrideau
I just got a new laptop and I am installing some software. After a bit of a struggle I managed to install Ubuntu 16.04 and and bits of linux-based software but I am hitting a wall with Apache OpenOffice.

It looks to be installed. There are icons in the Dash, etc and a “whereis” gives me

Code: Select all

jrkrideau@jrk-T420:~$ whereis openoffice4
openoffice4: /usr/bin/openoffice4 /etc/openoffice4
However when I click on an AOO icon it looks like the program is starting to load and then it just vanishes after several seconds of chugging along.

Trying to load from the terminal results in

Code: Select all

jrkrideau@jrk-T420:~$ openoffice4

javaldx: Could not find a Java Runtime Environment!

/opt/openoffice4/program/soffice.bin: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory
But

Code: Select all

jrkrideau@jrk-T420:~$ locate libXtst 

/usr/lib/x86_64-linux-gnu/libXtst.so.6
/usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0 
and

Code: Select all

[jrkrideau@jrk-T420:/usr/share/java$ whereis java 

java: /usr/share/java 
and I seem to have all sorts of weird javas albeit perhaps not the required one?

Code: Select all


[b]java -version [/b]
The program 'java' can be found in the following packages:
* default-jre 
* gcj-4.9-jre-headless 
* gcj-5-jre-headless 
* openjdk-8-jre-headless 
* gcj-4.8-jre-headless
* openjdk-9-jre-headless 
Would anyone have any suggestions?

Re: New AOO install will not load in Ubuntu 16.04

Posted: Wed Jul 06, 2016 7:25 pm
by Villeroy
You can disable Java in <user_profile>/config/javasettings_Linux...xml

Re: New AOO install will not load in Ubuntu 16.04

Posted: Wed Jul 06, 2016 8:22 pm
by jrkrideau
Villeroy wrote:You can disable Java in <user_profile>/config/javasettings_Linux...xml
Ah, I had not really thought of that. Thanks.
Now just to figure out how to go about it :?

Actually though I am more concerned with the libXtst.so.6.1.0 issue unless it is the call to Java that is causing that error.

Re: New AOO install will not load in Ubuntu 16.04

Posted: Wed Jul 06, 2016 8:29 pm
by Villeroy

Code: Select all

<!--This is a generated file. Do not alter this file!-->
<java><enabled xsi:nil="false">true</enabled><userClassPath xsi:nil="false">C:\Drivers\UCanAccess-3.0.4-bin\loader\ucanload.jar</userClassPath><vmParameters xsi:nil="false"><param>-DUCANACCESS_HOME=C:\\Drivers\\UCanAccess-3.0.4-bin</param></vmParameters><jreLocations xsi:nil="true"/><javaInfo xsi:nil="false" vendorUpdate="2013-05-02" autoSelect="true"><vendor>Oracle Corporation</vendor><location>file:///C:/Program%20Files/Java/jre1.8.0_91</location><version>1.8.0_91</version><features>0</features><requirements>0</requirements><vendorData>660069006C0065003A002F002F002F0043003A002F00500072006F006700720061006D00250032003000460069006C00650073002F004A006100760061002F006A007200650031002E0038002E0030005F00390031002F00620069006E002F0063006C00690065006E0074002F006A0076006D002E0064006C006C00</vendorData></javaInfo></java>
This is the javasettings_Windows_x86.xml from the LO on Windows I'm using right now.
When I change ...
<enabled xsi:nil="false">true</enabled>
... to ...
<enabled xsi:nil="false">false</enabled>
... LibreOffice starts with Java disabled.

Then you can use the options dialog and point it to a proper Java directory such as /usr/lib/java or /usr/local/lib/java.
libXtst.so.6.1.0 seems to be a mistake.

Re: New AOO install will not load in Ubuntu 16.04

Posted: Thu Jul 07, 2016 7:33 pm
by jrkrideau
Thanks Villeroy. So far,I have not had to modify the javasettings_Linux...xml file. In fact, currently I cannot even find the blasted thing.

So far, but it's early days, it looks like my purge of LibreOffice did not remove a file from /.config which had a javasettings_Linux...xml so my guess, at the moment, is that I was running into some kind of conflict between the LibreOffice file and AOO.

At least I hope that is all that the problem was.

Thanks again for the help.

Re: Solved New AOO install will not load in Ubuntu 16.04

Posted: Thu Jul 07, 2016 7:46 pm
by Villeroy
On my Ubuntu 14.4.
I find the OpenOffice file under ~/.openoffice/4/user/config/javasettings_Linux...xml
I find the LibreOffice file under ~/.config/libreoffice/4/user/config/javasettings_Linux...xml for the repository LO and for the one from the website. Even LO of version 5 uses the 4/ path.

Re: Solved New AOO install will not load in Ubuntu 16.04

Posted: Thu Jul 07, 2016 7:57 pm
by jrkrideau
Sorry, you're correct. For some reason I was scanning for a folder not a file. Just my general level of stupidity after a day and a half of setting up a new computer. I had forgotten just how many things I had changed or customised on my old machine.

AND Ubuntu went and upgraded gedit so I cannot use rgedit! I sometimes think we should had stayed with a quill pen, an abacus and box of notecards.