Back to LanguageTool Homepage - Privacy - Imprint

Help.. error when try to launch Languagetool as server

java -cp LanguageTool.jar com.xxxxxxxxxxx.languagetools.server.HTTPServer

Exception in thread “main” java.lang.NoClassDefFoundError: com.xxxxxxxxxxx.languagetools.server.HTTPServer
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: com.xxxxxxxxxxx.languagetools.server.HTTPServer not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)

Not sure where you got that command from… the correct command is this:

java -cp LanguageTool.jar org.languagetool.server.HTTPServer

This is documented at http://www.languagetool.org/usage/

I am a beginner … I want to use it this tools on a website …
I understand that I must

  1. to start LanguageTool server in a server-only mode
    java-cp LanguageTool.jar com.xxxxxxx.languagetool.server.HTTPServer

  2. after that I can access xxxxxxx.com/languagetool/?language=en&text=my+text

if the above affirmation is wrong … can someone explain to me how can I use Languagetool on my website?

No, you have to type “java -cp LanguageTool.jar org.languagetool.server.HTTPServer”, exactly like that. “org.languagetool” is not a server name, it’s an internal Java package name and may not be modified.

same error

[medadmin@server ~/public_html]$ java -cp LanguageTool.jar org.languagetool.server.HTTPServer
Exception in thread “main” java.lang.NoClassDefFoundError: org.languagetool.server.HTTPServer
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: org.languagetool.server.HTTPServer not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)

Are you using LanguageTool 1.6? The given command only works for that version.