On May 15, 2015, at 9:03 AM, Shawn Heisey <[email protected]> wrote:
> 
> 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

Note this: 
https://cwiki.apache.org/confluence/display/solr/Post+Tool#PostTool-Windows 
<https://cwiki.apache.org/confluence/display/solr/Post+Tool#PostTool-Windows>

In this case, bin/post is Unix only.   There is no Windows bin/post.cmd - but 
it’d be great to have that capability.  Any Windows savvy scripters here that 
could port bin/post to a Windows script?



—
Erik Hatcher, Senior Solutions Architect
http://www.lucidworks.com <http://www.lucidworks.com/>

Reply via email to