[
https://issues.apache.org/jira/browse/SOLR-7537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545463#comment-14545463
]
Erik Hatcher commented on SOLR-7537:
------------------------------------
bq. But I think this is absurd
I don't disagree. :) - however I'm not a Windows user, and thus when I created
bin/post it was for 'nix only. See
https://cwiki.apache.org/confluence/display/solr/Post+Tool#PostTool-Windows -
it would be great to have a port of this to a Windows script if someone would
step up and contribute it.
However, in this example case (the techproducts), you can run it all in one
shot using `bin/solr -e techproducts`, and underneath it is doing this on
Windows:
{code}
@echo Indexing tech product example docs from "%SOLR_TIP%\example\exampledocs"
"%JAVA%" %SOLR_SSL_OPTS%
-Durl=!SOLR_URL_SCHEME!://localhost:%SOLR_PORT%/solr/%EXAMPLE%/update -jar
"%SOLR_TIP%/example/exampledocs/post.jar" "%SOLR_TIP%/example/exampledocs/*.xml"
{code}
> 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: [email protected]
For additional commands, e-mail: [email protected]