Back to LanguageTool Homepage - Privacy - Imprint

Installing LanugageTool in LibreOffice


(jab) #1

Hi,

I failed to install Languagetool to Libreoffice. I tried languagetool stable and nighly (as of today) with libeoffice trunk (from yesterday) and 4.1.4.2 on Ubuntu 13.10 amd64. I get the following error:

(com.sun.star.uno.RuntimeException) { { Message = "[jni_uno bridge error] UNO calling Java method writeRegistryInfo: non-UNO exception occurred: java.lang.UnsupportedClassVersionError: org/languagetool/openoffice/Main : Unsupported major.minor version 51.0\X000ajava stack trace:\X000ajava.lang.UnsupportedClassVersionError: org/languagetool/openoffice/Main : Unsupported major.minor version 51.0\X000a\X0009at java.lang.ClassLoader.defineClass1(Native Method)\X000a\X0009at java.lang.ClassLoader.defineClass(ClassLoader.java:643)\X000a\X0009at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\X000a\X0009at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)\X000a\X0009at java.net.URLClassLoader.access$000(URLClassLoader.java:73)\X000a\X0009at java.net.URLClassLoader$1.run(URLClassLoader.java:212)\X000a\X0009at java.security.AccessController.doPrivileged(Native Method)\X000a\X0009at java.net.URLClassLoader.findClass(URLClassLoader.java:205)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:323)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:316)\X000a\X0009at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:615)\X000a\X0009at java.lang.ClassLoader.loadClass(ClassLoader.java:268)\X000a\X0009at com.sun.star.comp.loader.RegistrationClassFinder.find(RegistrationClassFinder.java:55)\X000a\X0009at com.sun.star.comp.loader.JavaLoader.writeRegistryInfo(JavaLoader.java:399)\X000a", Context = (com.sun.star.uno.XInterface) @0 } }

Any ideas?

Jan


(Daniel Naber) #2

You need Java 7 or 8 - you're using Java 6. Java 7 or 8 needs to be both installed on your system and configured in LibreOffice (Tools -> Options -> Advanced).


(Apfelgriebs) #3

Check synaptic for the meta-package "libreoffice". It contains serveral java-related packages and installing it solved the problem for me on Linux Mint 14.