szaman
szaman

Reputation: 6756

NoClassDefFoundError when starting apache solr

When I try start apache solr:

java -jar start.jar

I get NoClassDefFoundError: org/apache/solr/common/SolrException

How can I resolve that?

EDIT: I downloaded apache-solr-1.4.1 and extracted. On command line I go to example catalog and type java -jar start.jar

Upvotes: 1

Views: 541

Answers (3)

Dimanshu Parihar
Dimanshu Parihar

Reputation: 373

Please download the latest version of solr from the Apache Solr website. You should have java 8 or higher and your JAVA_HOME must be set too accordingly to have the solr up and running.

Upvotes: 1

ftuna
ftuna

Reputation: 136

It has been very long time since you asked the question. Now 3.4.0 is out. Does the problem still exist? Your java version seems correct but you are not using GNU's GCJ, right? Because in the tutorial part, It says that it does not work with that version.

Upvotes: 1

Johannes Klauß
Johannes Klauß

Reputation: 11020

This means, that you're not using the right Java Version. Update it to the latest Version and try it again. Should solve the problem.

Upvotes: 1

Related Questions