[Issue+Workaround] OOo 2.4 and Java

Issues with installing under all GNU/Linux Distributions
Post Reply
anli
Posts: 5
Joined: Fri Mar 28, 2008 5:53 am

[Issue+Workaround] OOo 2.4 and Java

Post by anli »

Have built/installed OOo 2.4 on ~amd64/x86_64 with java support. In Gentoo terms these USE flags were used:

cups dbus eds firefox java kde ldap pam -binfilter -debug ...

At starting any OOo programm konsole shows:

javaldx failed!

Tool-Options-Java dialog finds all three installed JREs, but after selecting radio control for any of them and clicking OK nothing changes (say, macros still don't work). Next time the dialog finds JREs again (nothing checked at dialog opening).

Please, help!
Last edited by Hagar Delest on Fri Mar 13, 2009 3:53 pm, edited 3 times in total.
Reason: Tagged thread as Issue (link to a bug report).
pongracz.istvan
Posts: 3
Joined: Fri Mar 28, 2008 11:06 am

Re: OOo 2.4 and Java

Post by pongracz.istvan »

I have a similar problem on my ~x86 gentoo system (2007.0 profile).
OOo 2.3.x and 2.4 and any kind of java (blackdown, sun version 1.4 - 1.6). Both
with the binary OOo and compiled version are failed to detect java environment.

And more: the Tool-Options-Java never find my installed JREs, even I try
to give the path exactly. It never recognize the java environment. I
have no idea, why.
I checked system-vm, user-vm, I installed lot of JREs, SDKs, but no results.

It is really weird and annoying. I cannot find The Ultimate Solution to
this kind of problem using google.

So, I cannot help, but at least, you are not alone :)
Anyway, it would be nice to find out, how to solve this kind of issue. Maybe the description of the correct procedure, how to OOo tries to find the java environment should help.

István
User avatar
Hagar Delest
Moderator
Posts: 32668
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: OOo 2.4 and Java

Post by Hagar Delest »

LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
pongracz.istvan
Posts: 3
Joined: Fri Mar 28, 2008 11:06 am

Re: OOo 2.4 and Java

Post by pongracz.istvan »

I guess, yes.
Except, on my 32 bit system I only have 32 bit java.

Anyway, OOo working well on my system, except that, it does not want to find any java, even I cry to my computer.

István
anli
Posts: 5
Joined: Fri Mar 28, 2008 5:53 am

Re: OOo 2.4 and Java

Post by anli »

Hagar de l'Est wrote:Seems similar to that issue: Re: [Ubuntu] Installing OOo on Debian and Co.
Of course, I have both all JREs 64bit as well as OOo is - last one is built on 64 bit system.
User avatar
Hagar Delest
Moderator
Posts: 32668
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: OOo 2.4 and Java

Post by Hagar Delest »

As there is no official version in 64 bits IIRC, perhaps there is still a problem for OOo to recognize a 64 bits version of Java?
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
anli
Posts: 5
Joined: Fri Mar 28, 2008 5:53 am

Re: OOo 2.4 and Java

Post by anli »

Hagar de l'Est wrote:As there is no official version in 64 bits IIRC, perhaps there is still a problem for OOo to recognize a 64 bits version of Java?
If we take into account pongracz.istvan's message, the problem seems to be tolerant to 32bit or 64bit arch difference. And OOo 2.3.x finds and works with Java without problems (it is also at my case with 2.3.x built on x86_64 system, rather binary distribution).
User avatar
Hagar Delest
Moderator
Posts: 32668
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: OOo 2.4 and Java

Post by Hagar Delest »

Right. In that case, you should check the Issue tracker: [Tutorial] Reporting bugs.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
anli
Posts: 5
Joined: Fri Mar 28, 2008 5:53 am

Re: OOo 2.4 and Java

Post by anli »

Hagar de l'Est wrote:Right. In that case, you should check the Issue tracker: [Tutorial] Reporting bugs.
Thanks, done:

http://www.openoffice.org/issues/show_bug.cgi?id=87549

Not sure about priority (for me it is a stopper, for somebody it can have not any value at all), have selected P2.
anli
Posts: 5
Joined: Fri Mar 28, 2008 5:53 am

Re: OOo 2.4 and Java

Post by anli »

See workaround here:

http://bugs.gentoo.org/show_bug.cgi?id=215163

Comments 7, 8.
pongracz.istvan
Posts: 3
Joined: Fri Mar 28, 2008 11:06 am

SOLVED - Re: OOo 2.4 and Java - workaround

Post by pongracz.istvan »

I did the following:

sed -i 's/XINERAMA/FAKEEXTN/g' /opt/sun-jdk-1.6.0.05/jre/lib/i386/xawt/libmawt.so

After this I got Sun JRE working on my ~x86 with OOo.

It is interesting, how the hell should I find out this solution????
Thanks for Chris Mayo.


The original post from the gentoo bug site:

------- Comment #10 From Chris Mayo 2008-03-29 09:18:55 0000 [reply] -------

For me this has been (not new with the latest OpenOffice or jdk) an example of:
http://bugs.freedesktop.org/show_bug.cgi?id=11390
http://bugs.sun.com/bugdatabase/view_bu ... id=6532373

doing:

sed -i 's/XINERAMA/FAKEEXTN/g'
/opt/sun-jdk-1.6.0.05/jre/lib/amd64/xawt/libmawt.so

fixes it for me, not sure what other damage it does though.
Post Reply