Elastricsearch-2.2.0 is not starting

I have installed elasticsearch 2.2.0 and it worked fine for a week, but now it didn't start. I have set both JAVA_HOME and JRE_HOME. I use java version 1.8 (i.e., jdk1.8.0_201 and jre1.8.0_202). When I try to start the elasticsearch.bat it terminates with a error message of:

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/commons/cli/CommandLineParser
Likely root cause: java.lang.ClassNotFoundException: 
org.apache.commons.cli.CommandLineParser
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:241)
    at 
org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.

But no logs has been generated.

Why are you using such an old version?

soon I am going to work on a product which works on that version, currently I studying how it is working

How did you install it?

Downloaded the zip file and unzipped it.

Now I found that JAVA API is working fine but the elasticsearch-2.2.0 is not starting and not running on localhost:9200

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