Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8401

Windows start script fails when executed from a different drive

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.3.1
    • Fix Version/s: 5.5, 6.0
    • Component/s: scripts and tools
    • Labels:
      None
    • Environment:

      Windows

      Description

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

      cd "%SOLR_SERVER_DIR%"
      

      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:

      cd /d "%SOLR_SERVER_DIR%"
      

        Attachments

        1. SOLR-8401.patch
          0.4 kB
          Erick Erickson
        2. SOLR-8401.patch
          0.9 kB
          Erick Erickson

          Activity

            People

            • Assignee:
              erickerickson Erick Erickson
              Reporter:
              ngavalda Nicolas Gavalda
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: