(Andreas Bakopoulos) #1


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

(David Pilato) #2

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

I'd read:

(Andreas Bakopoulos) #3

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

(David Pilato) #4

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

(system) #5

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