Back to LanguageTool Homepage - Privacy - Imprint

Ubuntu 14.04 java error


(Julian Lewis) #1

I get this error on trying to enable the LT package on ny 14.04 LT ubuntu
system. I looks like I am not using java 8, but as you can see below, java reports the correct version.

uname -a
4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

[jni_uno bridge error] UNO calling Java method writeRegistryInfo: non-UNO exception occurred: java.lang.NoClassDefFoundError: com/sun/star/task/XJobExecutor
java stack trace:
java.lang.NoClassDefFoundError: com/sun/star/task/XJobExecutor
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.sun.star.comp.loader.RegistrationClassFinder.find(RegistrationClassFinder.java:52)
at com.sun.star.comp.loader.JavaLoader.writeRegistryInfo(JavaLoader.java:380)
Caused by: java.lang.ClassNotFoundException: com.sun.star.task.XJobExecutor
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 15 more


(Daniel Naber) #2

The Java in LibreOffice may be a different one than the one on the command line. The one on the command line looks okay. You also need to set it in LibreOffice at Tools -> Options, Advanced.


(Julian Lewis) #3

I have enabled the "use java runtime environment" button
Then I get options to select either
Oracle Corporation 1.8.0_121 or 1.8.0_131
neither of them work, both give the java error


(Daniel Naber) #4

Have you checked the potential issues at https://languagetool.org/issues/?