Back to LanguageTool Homepage - Privacy - Imprint

Lubuntu 20.04 - unable to install LanguageTool-4.8.oxt

Hello,

Can’t get latest LanguageTool-4.8.oxt extension from your main website (May 2020) installed and working onto a LibreOffice Writer v6.4.3.2 installed on a Lubuntu 20.04 machine. Getting a lot of Java (error messages see next section).

(com.sun.star.uno.RuntimeException) 
{ { Message = "
[jni_uno bridge error] UNO calling Java method writeRegistryInfo: non-UNO exception occurred: java.lang.NoClassDefFoundError: com/sun/star/task/XJobExecutor\X000a
java stack trace:
\X000a
java.lang.NoClassDefFoundError: com/sun/star/task/XJobExecutor\X000a\X0009
  at java.base/java.lang.ClassLoader.defineClass1(Native Method)\X000a\X0009
  at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)\X000a\X0009
  at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)\X000a\X0009
  at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:550)\X000a\X0009
  at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458)\X000a\X0009
  at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452)\X000a\X0009
  at java.base/java.security.AccessController.doPrivileged(Native Method)\X000a\X0009
  at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451)\X000a\X0009
  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)\X000a\X0009
  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:576)\X000a\X0009
  at java.base/java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:899)\X000a\X0009
  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)\X000a\X0009
  at com.sun.star.comp.loader.RegistrationClassFinder.find(RegistrationClassFinder.java:53)\X000a\X0009
  at com.sun.star.comp.loader.JavaLoader.writeRegistryInfo(JavaLoader.java:376)\X000aCaused by: java.lang.ClassNotFoundException: com.sun.star.task.XJobExecutor\X000a\X0009
  at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)\X000a\X0009
  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)\X000a\X0009
  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)\X000a\X0009
  ... 14 more
 \X000a
 ", Context = (com.sun.star.uno.XInterface) @0 } }

I’m not a Java power user so this is all new to me. Looking at a few Youtube videos I made a presumption that the OpenJDK is the same as using OracleJDK and that it shouldn’t be any different.

It stated on the main web page under Add-on for Libra Office that it “Requires Java 8 or later”. I installed the “default-jdk” package from the Ubuntu repositories which is LTS version 11.0.7 - but when I tried to install the extension via LibreOffice Writer it gave me many error messages. The extension does appear to be installed after restart of Libre Writer but going into Tools -> Extension Manager , I see the extension showing mostly greyed out text with message stating “Error: The status of this extension is unknown” also with a red ! showing on right side of the box. I try to enable extension and I get the same erroe message thrown at me so it’s not installong or working as expected after restart.

So I removed and restarted and attempt with installation of the “openjdk-8-jre” and got the same issue even with a “openjdk-14-jdk”. FYI, I did a “…$ sudo update-alternative --config java©” to move to alternative version of JRE/JDK but same error message as above all the time.

Thanks in advance for help.

Have you checked https://languagetool.org/issues?

@dnaber Thank you. Installation of the “libreoffice-java-common” package resolved installation issue. Seems to be running with OpenJDK 14 as expected.