[
https://issues.apache.org/jira/browse/SOLR-11505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16213250#comment-16213250
]
Shawn Heisey commented on SOLR-11505:
-------------------------------------
This is what I see on my system, where solr.cmd works:
{code:none}
C:\Users\sheisey>where find
C:\Windows\System32\find.exe
C:\cygwin64\bin\find.exe
{code}
I have cygwin installed, but when I modified the global PATH, I added the
cygwin bin directory more towards the end of the string, not the beginning,
because I knew there were a number of built-in windows commands where the same
command exists in cygwin. Although I would most likely would prefer to the
cygwin version in my own incidental usage, I couldn't be sure that I wouldn't
be breaking other software, and clearly that *can* happen.
Using "%windir%\System32\find.exe" instead of just "find" seems to work. Would
that be a reasonable idea to use in the script? I didn't see any default
system environment variables pointing directly at the System32 subdirectory.
If there are any other system utilities that the script uses without explicit
paths, it might be a good idea to utilize environment variables to locate them
in their expected places.
This is my PATH variable:
{code:none}
C:\Users\sheisey>echo %path%
C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD
APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program
Files\Java\jdk1.6.0_27\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Common Files\Roxio
Shared\9.0\DLLShared\;C:\Windows\System32\Windows System Resource
Manager\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\ATI
Technologies\ATI.ACE\Core-Static;C:\cygwin64\bin;C:\apache-ant-1.9.6\bin;C:\Program
Files (x86)\GNU\GnuPG\pub;C:\Program Files (x86)\Git\cmd;C:\Program Files
(x86)\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files
(x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files
(x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\120\DTS\Binn\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program
Files\PuTTY\
{code}
> solr.cmd start of solr7.0.1 can't working in win7-64
> ----------------------------------------------------
>
> Key: SOLR-11505
> URL: https://issues.apache.org/jira/browse/SOLR-11505
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrCLI
> Affects Versions: 7.0.1
> Environment: windows 7
> Reporter: cloverliu
> Priority: Trivial
> Attachments: screenshot-1.png, screenshot-2.png
>
>
> http://archive.apache.org/dist/lucene/solr/7.0.1/solr-7.0.1.zip
> solr.cmd start of this file can't working in my win7-64bit.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]