Error: Could not find or load main class org.elasticsearch.launcher.CliToolLauncher

I'm using windows and when I'm trying to run any other command than bin/elasticsearch.bat I get this strange error, maybe do you know why? I've checked the logs but I didn't found anything other than this

dziugas@DESKTOP-R163FHG MINGW64 ~/Desktop/elasticsearch-8.5.3
$ ./bin/elasticsearch-create-enrollment-token -s node
Error: Could not find or load main class org.elasticsearch.launcher.CliToolLauncher
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.launcher.CliToolLauncher

Welcome to our community! :smiley:

Are you running that in WSL?

hello there, no I run elastic pure on windows 11

hello @dziugitaz are you finish or solved this problem? cause I find same issue

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.