Back to LanguageTool Homepage - Privacy - Imprint

Can't run LanguageTool in command line

Hi

I just built LanguageTool from git (SHA1 6468cebb3c5d61d6f3da6bcccc3f2f87dedf650e) on Linux and the command line fails:

$ echo "This is is test." | java -jar ./languagetool-commandline/target/languagetool-commandline-5.9-SNAPSHOT.jar -l en
Error: Unable to initialize main class org.languagetool.commandline.Main
Caused by: java.lang.NoClassDefFoundError: org/languagetool/rules/Rule

Is this a bug or has anything changed?

You need to run the file in languagetool-standalone:

echo "This is is test." | java -jar ./languagetool-standalone/target/LanguageTool-5.9-SNAPSHOT/LanguageTool-5.9-SNAPSHOT/languagetool-commandline.jar -l en