0

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?

1 Answer 1

1

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>
Sign up to request clarification or add additional context in comments.

6 Comments

where do i add this?
In your Maven or Gradle build scripts ... of course. But it assumes that you are using Maven or Gradle for your builds.
it is an android app and no build script has been written
In the build.gradle file inside dependencies tag
there is now build.gradle file i am not using android studio, using eclipse
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.