Back to LanguageTool Homepage - Privacy - Imprint

LT does not work with LibreOffice 7.1 Linux

Hi,

LanguageTool is awesome. Unfortunately it stopped working with either current java or LibreOffice 7.1 on Linux.

Noticed this on current Fedora 34 Linux. Problem appears not specific to Fedora as there are similar issues with other current distros, cf. comments on https://extensions.libreoffice.org/en/extensions/show/languagetool

$ libreoffice --version
LibreOffice 7.1.2.2 10(Build:2)

$ java -version
openjdk version β€œ11.0.11” 2021-04-20
OpenJDK Runtime Environment 18.9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9, mixed mode, sharing)

LanguageTool LO Extension version 5.3

Errors from stderr:
java.lang.NoClassDefFoundError: Could not initialize class org.languagetool.gui.Configuration
at org.languagetool.openoffice.MultiDocumentsHandler.initLanguageTool(MultiDocumentsHandler.java:643)
at org.languagetool.openoffice.MultiDocumentsHandler.initLanguageTool(MultiDocumentsHandler.java:637)
at org.languagetool.openoffice.MultiDocumentsHandler.getCheckResults(MultiDocumentsHandler.java:192)
at org.languagetool.openoffice.MultiDocumentsHandler.doProofreading(MultiDocumentsHandler.java:161)
at org.languagetool.openoffice.Main.doProofreading(Main.java:81)
java.lang.NullPointerException
at org.languagetool.openoffice.MultiDocumentsHandler.initCheck(MultiDocumentsHandler.java:705)
at org.languagetool.openoffice.MultiDocumentsHandler.getCheckResults(MultiDocumentsHandler.java:193)
at org.languagetool.openoffice.MultiDocumentsHandler.doProofreading(MultiDocumentsHandler.java:161)
at org.languagetool.openoffice.Main.doProofreading(Main.java:81)
Exception in thread β€œThread-746” java.lang.NoClassDefFoundError: Could not initialize class javax.swing.JComponent
at org.languagetool.gui.AboutDialog.show(AboutDialog.java:58)
at org.languagetool.openoffice.MultiDocumentsHandler$AboutDialogThread.run(MultiDocumentsHandler.java:1340)

Does using the current snapshot help? https://internal1.languagetool.org/snapshots/LanguageTool-20210506-snapshot.oxt

1 Like

Yes, basically this version seems to work. Unfortunately though, the misspelled words are not marked with a wavy underline :frowning:

However, I’m not sure, if this is a LO or LT issue.

Thx for the quick response. BTW, is there a way to donate to LT?

No, but you could buy the premium version :slight_smile: https://languagetool.org/premium

Tick Add LanguageTool dictionary to LibreOffice spell check in the LanguageTool options.

Also, read this tutorial.

Just a quick follow-up. Everything works with this snapshot, I even get a wavy underline.