LanguageTool server not working after last updates

Good morning everyone,

Lately, I wanted to use languagetool in manjaro, and it appears that the last couples of update from last months broke it.
Now when I run the languagetool command in the terminal I get:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-18-openjdk/lib/
        at java.base/java.lang.ClassLoader.loadLibrary(
        at java.base/java.lang.Runtime.load0(
        at java.base/java.lang.System.load(
        at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
        at java.base/jdk.internal.loader.NativeLibraries$
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(
        at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(
        at java.base/java.lang.ClassLoader.loadLibrary(
        at java.base/java.lang.Runtime.loadLibrary0(
        at java.base/java.lang.System.loadLibrary(
        at java.desktop/java.awt.Toolkit$
        at java.desktop/java.awt.Toolkit$
        at java.base/
        at java.desktop/java.awt.Toolkit.loadLibraries(
        at java.desktop/java.awt.Toolkit.initStatic(
        at java.desktop/java.awt.Toolkit.<clinit>(
        at java.desktop/java.awt.Component.<clinit>(
        at org.languagetool.gui.Main.<init>(
        at org.languagetool.gui.Main.main(

And the languagetool server launched by texstudio return this if you want to check some text:
Error: Internal Error: java.lang.NoClassDefFoundError: Could not initialize class org.languagetool.gui.Configuration, detected: it

My jvm version:

$ java --version                                                                                       ✔ 
openjdk 2022-04-22
OpenJDK Runtime Environment (build
OpenJDK 64-Bit Server VM (build, mixed mode)

My language tool version: 5.7-1

Thanks in advance

I guess you need java 11 for this:

pamac install jre11-openjdk
archlinux-java set java-11-openjdk

I found the solution.

When you install languagetool with pamac, it only install the headless packages for java (which do not contain

So in my case, sudo pamac install jre18-openjdk did the trick.

Maybe languagetool dependencies should be modified.

Thanks for the help anyway.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.