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

Windows start script fails when executed from a different drive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 5.3.1
    • 5.5, 6.0
    • scripts and tools
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: