Back to LanguageTool Homepage - Privacy - Imprint

How to run Languagetool server

Hello all!

I have moved my build artifact of languagetool-server from languagetool built to our own private server and now i want to start the server but when i run this command

java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --allow-origin "*"

it gives off this error

Exception in thread “main” java.lang.NoClassDefFoundError: org/languagetool/GlobalConfig
at org.languagetool.server.HTTPServerConfig.(HTTPServerConfig.java:103)
at org.languagetool.server.HTTPServer.main(HTTPServer.java:139)
Caused by: java.lang.ClassNotFoundException: org.languagetool.GlobalConfig
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 2 more

What can be a possible solution for this problem

I am seeing the same issue. Did you manage to resolve this?

GlobalConfig should be in libs/languagetool-core.jar, could you check if it is?

Ok figured it out … I moved the jar file and then obviously stuff is missing. So just keeping all the files and the jar in the same directory fixed things.