You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Peng Li (JIRA)" <ji...@apache.org> on 2015/05/13 05:42:59 UTC

[jira] [Created] (SOLR-7537) Could not find or load main class org.apache.solr.util.SimplePostTool

Peng Li created SOLR-7537:
-----------------------------

             Summary: 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [jira] [Created] (SOLR-7537) Could not find or load main class org.apache.solr.util.SimplePostTool

Posted by Erik Hatcher <er...@gmail.com>.
On May 15, 2015, at 9:03 AM, Shawn Heisey <ap...@elyograg.org> 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/>


Re: [jira] [Created] (SOLR-7537) Could not find or load main class org.apache.solr.util.SimplePostTool

Posted by Shawn Heisey <ap...@elyograg.org>.
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org