Sneha Krishnamurthy
Sneha Krishnamurthy

Reputation: 21

java error : java.lang.NoClassDefFoundError

I am running my solr on an ec2 instance from aws and I have added my solrj libraries in a lib folder in my solr instance and added the path in the solr.config, but I still get the following error:

12-03 01:20:59.010: E/AndroidRuntime(5594):
java.lang.NoClassDefFoundError: Failed resolution of:
Lorg/apache/solr/client/solrj/impl/HttpSolrClient$Builder;

what else do i need to do?

Upvotes: 0

Views: 1098

Answers (1)

Ashraful Islam
Ashraful Islam

Reputation: 12840

Add solrj as libary :

Gradle :

// https://mvnrepository.com/artifact/org.apache.solr/solr-solrj
compile group: 'org.apache.solr', name: 'solr-solrj', version: '6.3.0'

Maven :

<!-- https://mvnrepository.com/artifact/org.apache.solr/solr-solrj -->
<dependency>
    <groupId>org.apache.solr</groupId>
    <artifactId>solr-solrj</artifactId>
    <version>6.3.0</version>
</dependency>

Upvotes: 1

Related Questions