I am trying to use the java client but a receive the following error:

javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClient

Could you please help me to solve this issue?

Best regards,
Andreas Bakopoulos

You need to add the client to your project. Which you probably did not.

I'd read:

I use java 1.6 and I have insert in my pom the following dependency:


The application builts successfully but when I try to use the RestClient, i receive the following error:
java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClient

Not sure this is your issue but you need at least Java 1.8.

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