On 5/12/2015 9:42 PM, Peng Li (JIRA) wrote:
> In "solr-5.1.0/bin" folder, I typed below command "../doc" folder has 
> "readme.docx"
> sh post -c gettingstarted ../doc
> 
> And I got below exception:
> c:\Java\jdk1.8.0_20/bin/java -classpath 
> /cygdrive/c/Users/lipeng/_Main/Servers/solr-5.1.0/dist/solr-core-5.1.0.jar 
> -Dauto=yes -Dc=gettingstarted -Ddata=files -Drecursive=yes 
> org.apache.solr.util.SimplePostTool ../doc
> Error: Could not find or load main class org.apache.solr.util.SimplePostTool

The fact that you're trying to mix cygwin and Windows could be what's
going wrong here.  Don't use cygwin at all -- do this in a command
prompt and use Windows paths with backslashes.  Solr works completely
fine in a native Windows environment as long as Java is present, but it
doesn't like cygwin.  I don't regularly use Solr in Windows myself, but
I know that it works.

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to