Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#120 JNI exception during install

closed-invalid
nobody
5
2014-08-24
2012-08-06
Helge Hielscher
No

When I try to install languagetool in LibreOffice I get:
(com.sun.star.uno.RuntimeException) { { Message = "JNI exception occured" Context= (com.sun.star.uno.XInterface) @7f85ec0332f8
(ImplementationName = "com.sun.star.comp.JavaVirtualMachine") } }

OS: Mageia Linux Cauldron

# uname -a
Linux iwan 3.5.0-desktop-1.mga3 #1 SMP Sat Jul 28 00:29:28 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
# rpm -qa|grep -i libreoffice
libreoffice-draw-3.6.0.4-3.mga3
libreoffice-base-3.6.0.4-3.mga3
libreoffice-core-3.6.0.4-3.mga3
libreoffice-impress-3.6.0.4-3.mga3
libreoffice-opensymbol-fonts-3.6.0.4-3.mga3
libreoffice-writer-3.6.0.4-3.mga3
libreoffice-langpack-en-3.6.0.4-3.mga3
libreoffice-calc-3.6.0.4-3.mga3
libreoffice-math-3.6.0.4-3.mga3
libreoffice-3.6.0.4-3.mga3
libreoffice-ogltrans-3.6.0.4-3.mga3
libreoffice-graphicfilter-3.6.0.4-3.mga3
libreoffice-ure-3.6.0.4-3.mga3
libreoffice-javafilter-3.6.0.4-3.mga3
libreoffice-java-common-3.6.0.4-3.mga3
libreoffice-presenter-screen-3.6.0.4-3.mga3
libreoffice-pdfimport-3.6.0.4-3.mga3

Same error with current snapshot (LanguageTool-20120805-snapshot.oxt)

Discussion

  • As you see above libreoffice-java-common is installed.
    But libreoffice does not list Java 1.6, only 1.7 – could that be the culprit? (both jre-1.7.0-openjdk.x86_64 and jre-1.6.0-sun are installed on this system)

     
  • Daniel Naber
    Daniel Naber
    2012-08-09

    Is that a 64bit version of LibreOffice? If not, you will need a 32bit Java., preferably the one you can download from Oracle. Both 1.7 and 1.6 *should* work, but there may be less problems with 1.6.

     
  • $ java -version
    java version "1.7.0_03-icedtea"
    OpenJDK Runtime Environment (mageia-2.2.1.1.mga3-x86_64)
    OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)
    $ /usr/lib/jvm/jre-1.6.0-sun/bin/java -version
    java version "1.6.0_26"
    Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

    This is a x86-64 distribution, so libreoffice should be built in 64bit, and it is:
    $ file /usr/lib64/libreoffice/program/libswlo.so
    /usr/lib64/libreoffice/program/libswlo.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=0x64d59a108b762c8fe50953a0d20f2a17787c8d7f, stripped

     
  • The only thing I can suggest now is to install the JVM from Oracle and try with that. We're having lots of Java integration problems, but "JNI exception occured" is new to me.

    Report with similar problem but no real solution: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466300

     
  • LanguageTool install worked after resetting my profile.
    There might have been some leftovers from trying to install Duden Korrektor.

     
    • status: open --> closed-invalid