NoClassDefFoundError when starting apache solr
W开发者_开发技巧hen 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
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.
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.
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.
精彩评论