Error: Could not find or load main class org.languagetool.server.HTTPServer

I am trying to run LT on a Windows 10 machine with Java 8 using
java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081

However, I am getting this error. Any ideas?
Error: Could not find or load main class org.languagetool.server.HTTPServer

Do you run that command in the folder that contains languagetool-server.jar?

Yes.
The GUI app runs fine.

In that case, I’m not sure what might be wrong. Is this the latest version of LT? Could you re-download it to make sure nothing is wrong with the download?

Actually I wasn’t in the correct folder. It runs without the error now.