Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#12239 - OpenOffice expects java to be in /opt/java

Attached to Project: Arch Linux
Opened by Nicolas Bigaouette (big_gie) - Tuesday, 25 November 2008, 17:51 GMT
Last edited by Allan McRae (Allan) - Wednesday, 26 November 2008, 02:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
OpenOffice seems to expect java to be in /opt/java but openjdk6 is installed in /usr/lib/jvm/java-1.6.0-openjdk. When installing a java extension (languagetool: http://www.languagetool.org/ ) an error is reported, stating a java runtime can't be initialized.

When run from the command line, and trying to install the extension, I get:
[Java framework]sunjavaplugin.so could not load Java runtime library:
file:///opt/java/jre/lib/amd64/server/libjvm.so.

As a workaround, I've made a symbolic link from openjdk6's libjvm.so where openoffice is looking for it:
> sudo mkdir -p /opt/java/jre/lib/amd64/server/
> sudo ln -s /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/libjvm.so /opt/java/jre/lib/amd64/server/
Else I can't install the extension. Now I can install it and run it.

Additional info:
* package version(s) local/openoffice-base 3.0.0-3
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 26 November 2008, 02:56 GMT
Reason for closing:  Fixed
Comment by Andreas Radke (AndyRTR) - Tuesday, 25 November 2008, 19:54 GMT
As you can see from the command line output the plugin has been build to work with Sun's Java. So use this if you really need that broken and unflexible extension.

It's simply some unflexibility from the extension. Nothing we will change for OpenJDK6.
Comment by Aaron Griffin (phrakture) - Tuesday, 25 November 2008, 21:59 GMT
After discussion over email, it seems this actual error is from sunjavaplugin.so, shipped with openoffice-base. I don't know if this is a JAVA_HOME issue, or what, but for some reason that plugin is looking in /opt/java for the JRE, not in /usr/lib/jvm/java-1.6.0-openjdk as it should. This is an issue with our openoffice package, not the extension he installed.
Comment by Jan de Groot (JGC) - Tuesday, 25 November 2008, 22:45 GMT
When you start soffice, then go to tools -> options -> java, does it list a "sun java 1.6.0_0" located in /usr/lib/jvm/java-1.6.0-openjdk/jre there?
Comment by Jan de Groot (JGC) - Tuesday, 25 November 2008, 22:51 GMT
Languagetool works fine here with openjdk. You have some stale java environment setting around somewhere.
Comment by Nicolas Bigaouette (big_gie) - Tuesday, 25 November 2008, 22:58 GMT
After selecting "java" in the option menu and waiting around 3 seconds, I get this:
http://nbigaouette.inrs-emt.homelinux.net/linux/arch/ooorg/oopenoffice_java.png

The openjdk was not selected here... weird. After selecting it and reinstalling the extension, I don't have any error anymore.
Comment by Nicolas Bigaouette (big_gie) - Tuesday, 25 November 2008, 23:02 GMT
Yeah it seems. After selecting openjdk from the tools/option/java menu, everything works.
The bug can be closed now... :) Thanx guys.

Loading...