[ 
https://issues.apache.org/jira/browse/SOLR-7537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15200472#comment-15200472
 ] 

Reji A commented on SOLR-7537:
------------------------------

At the very simplest, the work around to run "post" on Windows is through 
Cygwin, be sure to edit the "post" file as below:

## SOLR_TIP=`dirname "$THIS_SCRIPT"`/..
## SOLR_TIP=`cd "$SOLR_TIP"; pwd`
#SOLR_TIP="C:\MY_SOLR_INSTALL_DIR"
# in my case it was as below
SOLR_TIP="D:\apache\apache-solr\solr-5.5.0"

I ran the 'post' command:
$ ./post -c gettingstarted "/DIRECTORY TO SCAN/"

..
..

312 files indexed.
COMMITting Solr index changes to 
http://localhost:8983/solr/gettingstarted/updat                                 
                       e...
Time spent: 0:06:22.215






> Could not find or load main class org.apache.solr.util.SimplePostTool
> ---------------------------------------------------------------------
>
>                 Key: SOLR-7537
>                 URL: https://issues.apache.org/jira/browse/SOLR-7537
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 5.1
>         Environment: Windows 8.1, cygwin4.3.33
>            Reporter: Peng Li
>
> 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
> I followed instruction from here: 
> http://lucene.apache.org/solr/quickstart.html
> Can you help me to take a look at? Thank you!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to