简体   繁体   中英

Solr Quickstart tutorial: "Error: Could not find or load main class org.apache.solr.util.SolrCLI"

I am following the solr quickstart tutorial , and I was unable to even make it halfway down the page before running into issues.

I downloaded the tarball here using wget, and then ran a tar -xvf on it.

I attempted the VERY first command...

bin/solr start -e cloud -noprompt

And get hit with the error

Error: Could not find or load main class org.apache.solr.util.SolrCLI

To be honest, this is quite frustrating. Java is not my forte, so I am unsure what to do here. I was hoping this would be pretty plug and play, but I suppose not.

I googled the error message, and found similar, but not the same, error messages. Please help.

The issue here is not with Solr, solr is pretty much plug and play .

You have misaligned the instructions with download, Solr changed the way the binaries are organized and command line instructions . You have download binary with version 6.0 . while the instruction set you are using for 5.3 and that's exactly whats frustrating you .

Either download the solr 5.3.1 version Solr 5.3.1 Download or use instructions for 6.0 Solr 6.0 Instructions and you should be good to go.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM