Skip to content

NoClassDefFoundError #22

Description

@AdrienLemaire

Hi and thanks for making this plugin. I'm really interested by it covering Japanese (although vim spellcheck doesn't).

I installed languagetool on arch linux, and added the vim config:

$ yay -Ql languagetool | rg commandline.jar
languagetool /usr/share/java/languagetool/languagetool-commandline.jar
" vimrc
Plug 'dpelle/vim-LanguageTool'  " grammar checker supporting japanese
let g:languagetool_jar='/usr/share/java/languagetool/languagetool-commandline.jar'
set spelllang=en_us
"set spelllang=ja

"Customize colors in colorscheme
hi LanguageToolGrammarError  guisp=blue gui=undercurl guifg=NONE guibg=NONE ctermfg=white ctermbg=blue term=underline cterm=none
hi LanguageToolSpellingError guisp=red  gui=undercurl guifg=NONE guibg=NONE ctermfg=white ctermbg=red  term=underline cterm=none

But when I try to run :LanguageToolCheck, I'm getting:

Error detected while processing function <SNR>37_LanguageToolCheck:
line   43:
Command [java -jar /usr/share/java/languagetool/languagetool-commandline.jar -c utf-8 -d WHITESPACE_RULE,EN_QUOTES -l en-US --api /tmp/nvimMCUuQC/10 2> /tmp/nvimMCUuQC/11] failed with error: 1
line   46:
['Error: Unable to initialize main class org.languagetool.commandline.Main', 'Caused by: java.lang.NoClassDefFoundError: org/languagetool/rules/Rule']

Your documentation mentions installing the latest version of languagetool, and I seem to be using the version 5

$ yay -Qii languagetool
Name            : languagetool
Version         : 5.0-1
Description     : An open source language checker
Architecture    : any
URL             : https://www.languagetool.org
Licenses        : LGPL
Groups          : None
Provides        : None
Depends On      : java-runtime-headless>=8
Optional Deps   : java-runtime: needed for the GUI version [installed]
                  libxtst: needed for the GUI version [installed]
                  gtk2: needed for the GUI version [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 290.64 MiB
Packager        : Andrzej Giniewicz <gginiu@gmail.com>
Build Date      : Mon 29 Jun 2020 02:48:43 AM JST
Install Date    : Fri 11 Sep 2020 10:45:39 AM JST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
Backup Files    :
(none)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions