Not able to run elasticsearch.bat file

I am looking to run elasticsearch by running elasticsearch.bat file in bin folder
but its throwing following error,
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error: Could not find or load main class Kumar
Caused by: java.lang.ClassNotFoundException: Kumar

Mohan Kumar U is the user name, and i am running windows, java 11,
I have also set JAVA_HOME in environment variables

Which elasticsearch version is that?

I'd recommend moving elasticsearch to a directory without any space in its name.
Not sure if that will fix the problem but worth trying.
Same for Java.

You can also may be look at

I tried it,it still gives the same error

The version is 6.6.1.
But no matter which elasticsearch version i use ,i get that error.

Did you try ?

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