You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Nicolas Gavalda (JIRA)" <ji...@apache.org> on 2015/12/10 16:11:10 UTC

[jira] [Updated] (SOLR-8401) Windows start script fails when executed from a different drive

     [ https://issues.apache.org/jira/browse/SOLR-8401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolas Gavalda updated SOLR-8401:
----------------------------------
    Description: 
The windows start script (bin/solr.cmd) changes the current directory to the SOLR_SERVER_DIR before executing "java -jar start.jar":
{noformat}
cd "%SOLR_SERVER_DIR%"
{noformat}

If the solr.cmd script is executed from a different drive, the "cd" doesn't really change the directory and the java process doesn't start ("Unable to access jarfile start.jar")
It should be replaced by the following line in order to work from any location:
{noformat}
cd /d "%SOLR_SERVER_DIR%"
{noformat}

  was:
The windows start script (bin/solr.cmd) changes the current directory to the SOLR_SERVER_DIR before executing "java -jar start.jar":
{noformat}
cd "%SOLR_SERVER_DIR%"
{noformat}

If the solr.cmd script is executed from a different drive, the "cd" doesn't really change the directory. It should be replaced by the following line in order to work from any location:
{noformat}
cd /d "%SOLR_SERVER_DIR%"
{noformat}


> Windows start script fails when executed from a different drive
> ---------------------------------------------------------------
>
>                 Key: SOLR-8401
>                 URL: https://issues.apache.org/jira/browse/SOLR-8401
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 5.3.1
>         Environment: Windows
>            Reporter: Nicolas Gavalda
>
> The windows start script (bin/solr.cmd) changes the current directory to the SOLR_SERVER_DIR before executing "java -jar start.jar":
> {noformat}
> cd "%SOLR_SERVER_DIR%"
> {noformat}
> If the solr.cmd script is executed from a different drive, the "cd" doesn't really change the directory and the java process doesn't start ("Unable to access jarfile start.jar")
> It should be replaced by the following line in order to work from any location:
> {noformat}
> cd /d "%SOLR_SERVER_DIR%"
> {noformat}



--
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